69 KiB
auth
1.7.10
Patch Changes
- Updated dependencies [
fedd055,eebd47a,bbd0a19,09d07e6,eaecb72,88c9a37,0cf1f7c,414e845]:- @better-auth/core@1.7.10
- better-auth@1.7.10
- @better-auth/telemetry@1.7.10
1.7.9
Patch Changes
- Updated dependencies [
6edaa61]:- better-auth@1.7.9
- @better-auth/core@1.7.9
- @better-auth/telemetry@1.7.9
1.7.8
Patch Changes
- Updated dependencies [
4175b34,b1cfc1e,435645e,678c555,193efff,369176e,352d04c,e9d9921,e78f15a,1bd5c37,766cfb3,60525e0,c46992f,916ef5c,1d95ebf,6214610,c68b2cd,2627237,3d1f008,67743ed,f0ce580,c46d2a6,07a0938,92dfcea,e15625f,a9f455d,9725f1b]:- better-auth@1.7.8
- @better-auth/core@1.7.8
- @better-auth/telemetry@1.7.8
1.7.7
Patch Changes
- Updated dependencies [
4186e36,8620aa9,55cb92e,69defbc,ac54bfd,ac54bfd]:- better-auth@1.7.7
- @better-auth/core@1.7.7
- @better-auth/telemetry@1.7.7
1.7.6
Patch Changes
-
#11314
dcaa5a7Thanks @bytaesu! - Add read-onlycheckandcheck schemacommands to validate the configured adapter schema on demand. -
Updated dependencies [
af88385,2fa501c,d41e2ca,3d0efa3,631ac29,8853419,2ee1545,fc45d08]:- better-auth@1.7.6
- @better-auth/core@1.7.6
- @better-auth/telemetry@1.7.6
1.7.5
Patch Changes
- Updated dependencies [
e56c45b,8d37cc3,348fc26,cb627eb,dae97ed,133f6a2]:- better-auth@1.7.5
- @better-auth/core@1.7.5
- @better-auth/telemetry@1.7.5
1.7.4
Patch Changes
- Updated dependencies [
3ff842a,3f890eb,c1756a2,9b9638e]:- @better-auth/core@1.7.4
- better-auth@1.7.4
- @better-auth/telemetry@1.7.4
1.7.3
Patch Changes
-
#11100
b489373Thanks @bytaesu! - Add Codex as a supported target for configuring the Better Auth documentation MCP server. -
#11179
352d012Thanks @bytaesu! - Validate Drizzle schema objects and generated Prisma client models during initialization, including in production, and report mismatches with guidance for fixing them. These checks do not query the database and cannot detect unapplied migrations.For Prisma clients whose model metadata omits nullability,
auth generatereports required fields that Better Auth never writes by reading the existing Prisma schema. Setadvanced.database.validateSchema: falseto disable runtime validation. -
#11140
b95b7b3Thanks @bytaesu! - Allowauth initto finish when a generated setup has no dependencies in one of its install groups, and preserve useful package-manager output when an installation fails. -
#9908
76d311fThanks @harshil1712! - Add Cloudflare as a built-in social provider, with support for client-secret authentication and PKCE clients without a secret. -
#11178
be0e007Thanks @bytaesu! - Report missing tables, missing columns, and required columns Better Auth never writes during initialization, with guidance for fixing them. Kysely checks the live database schema. Authentication requests await the same check and are rejected if the schema does not match.Validation is enabled by default, including in production. Set
advanced.database.validateSchema: falseto disable runtime validation.auth migraterefuses to apply changes when required unwritten columns need manual repair. -
#11126
5024647Thanks @bytaesu! -auth infonow reports installed package versions instead of declared dependency specifiers, including catalog and workspace references. -
#11127
8bb6847Thanks @bytaesu! -auth upgradenow skips non-semver dependency specifiers, including pnpm catalogs, with a clear warning instead of crashing. -
Updated dependencies [
3660f06,5bd7096,352d012,7ec7146,76d311f,3e9e197,157ec8d,c47b765,2d5c63d,baa08f4,a9d8c12,9fc7498,9e36635,be0e007,a2bae0c,1a1b7d5,0bb0dbf,2220ee7,5fe5bc2,74a7369,e16b40a,c0444dc]:- better-auth@1.7.3
- @better-auth/core@1.7.3
- @better-auth/telemetry@1.7.3
1.7.2
Patch Changes
- Updated dependencies [
557e19b,64da15b,d5d889b,b4ad5a1,c7a5c1a,78f0c39,ce8a3ab,a021eaf,c8dcfa5,fced1a5,f6891a2,e1d4011,649818a]:- @better-auth/core@1.7.2
- better-auth@1.7.2
- @better-auth/telemetry@1.7.2
1.7.1
Patch Changes
-
#10863
845bbd1Thanks @gustavovalverde! -auth migrateno longer attempts to add a required column with no default value to a table that already has rows. It stops with an error naming the column and the backfill to run first. Previously the generated statement failed on SQLite, Postgres, and SQL Server; on MySQL it filled the new column with an empty string for every existing row and reported success. Ifauth migratealready ran against a MySQL database on 1.7, run the check in the upgrade guide's account identity section.getMigrationsthrows the newUnsafeMigrationError(exported frombetter-auth/db/migration) for this refusal, so callers can distinguish it from other migration errors such as an index-definition conflict.auth generatestill emits the statements for external migration tooling, with a comment banner naming any column that needs a manual backfill first.A required field whose database column is still nullable logs a warning instead of blocking the migration.
A CLI command that fails now prints its error and exits with a non-zero code instead of an unhandled promise rejection.
-
Updated dependencies [
845bbd1]:- better-auth@1.7.1
- @better-auth/core@1.7.1
- @better-auth/telemetry@1.7.1
1.7.0
Minor Changes
-
#9501
526aa32Thanks @bytaesu! - The CLI now auto-detects auth configs that export the same instance as both a named export and the default export (e.g.export const auth = betterAuth(...); export default auth;). Previously such configs failed when no explicit--configpath was passed. -
#10170
6ddb555Thanks @gustavovalverde! - TheauthCLI now requires Node.js 22.12 or newer, following its upgrade to Commander 15. Update your Node.js runtime before upgrading the CLI. -
#10402
763a267Thanks @gustavovalverde! - Plugin database schemas can now define named or generated table-level indexes across multiple fields. SQL migrations and generated Drizzle or Prisma schemas resolve configured table and column names consistently, while the MongoDB adapter creates the same indexes before the first index-enforcing write. -
#9547
15bb169Thanks @GautamBytes! - Add acreate-adminCLI command for creating an initial admin user through the configured Better Auth instance.
Patch Changes
-
#10770
692b22cThanks @ping-maxwell! - Export the generatedpgSchemabinding so drizzle-kit can emitCREATE SCHEMAfor custom PostgreSQL namespaces. -
Updated dependencies [
4e8e4c7,0cbaf81,b36c38f,5c45abc,6782647,73541c1,763a267,bf39cbf,081d3c3,49b5cf6,e014029,3d04fab,c7d2253,ec8a38c,430c895,de8394d,cf8eaac,523f95c,dbd302e,8784c1c,ecd83da,fe4c820,e53582c,7fe0e2b,0683a5f,e7eb45b,7c7313c,aedcb97,03e6c94,4f53b61,2196ea6,06daf70,6f2948e,e0d2b9e,f68044d,91f235f,d2a79ba,a83152e,bb6c102,34558bc,954b664,76a3342,1e5b808,93d3871,652fa53,729c00d,97903c9,6ddb555,6fe9faa,ed61b47,0de88f5,3a79aff,973fdde,41cca60,d701f90,ad35ead,59c4c83,544f1c6]:- better-auth@1.7.0
- @better-auth/core@1.7.0
- @better-auth/telemetry@1.7.0
1.7.0-rc.6
Patch Changes
-
#10770
692b22cThanks @ping-maxwell! - Export the generatedpgSchemabinding so drizzle-kit can emitCREATE SCHEMAfor custom PostgreSQL namespaces. -
Updated dependencies [
773de54,2ad2928]:- better-auth@1.7.0-rc.6
- @better-auth/core@1.7.0-rc.6
- @better-auth/telemetry@1.7.0-rc.6
1.7.0-rc.5
Patch Changes
- Updated dependencies [
6782647,081d3c3]:- better-auth@1.7.0-rc.5
- @better-auth/core@1.7.0-rc.5
- @better-auth/telemetry@1.7.0-rc.5
1.7.0-rc.4
Patch Changes
- Updated dependencies [
90b5093]:- better-auth@1.7.0-rc.4
- @better-auth/core@1.7.0-rc.4
- @better-auth/telemetry@1.7.0-rc.4
1.7.0-rc.3
Patch Changes
- Updated dependencies [
5c45abc,49b5cf6,430c895,5c45abc,ecd83da,0683a5f,f68044d,d701f90,59c4c83]:- @better-auth/core@1.7.0-rc.3
- better-auth@1.7.0-rc.3
- @better-auth/telemetry@1.7.0-rc.3
1.7.0-rc.2
Minor Changes
- #10402
763a267Thanks @gustavovalverde! - Plugin database schemas can now define named or generated table-level indexes across multiple fields. SQL migrations and generated Drizzle or Prisma schemas resolve configured table and column names consistently, while the MongoDB adapter creates the same indexes before the first index-enforcing write.
Patch Changes
- Updated dependencies [
763a267,cf8eaac,dbd302e,8784c1c,bb6c102,ed61b47,0de88f5,973fdde]:- @better-auth/core@1.7.0-rc.2
- better-auth@1.7.0-rc.2
- @better-auth/telemetry@1.7.0-rc.2
1.7.0-rc.1
Patch Changes
- Updated dependencies [
fe4c820]:- better-auth@1.7.0-rc.1
- @better-auth/core@1.7.0-rc.1
- @better-auth/telemetry@1.7.0-rc.1
1.7.0-rc.0
Patch Changes
- Updated dependencies []:
- better-auth@1.7.0-rc.0
- @better-auth/core@1.7.0-rc.0
- @better-auth/telemetry@1.7.0-rc.0
1.7.0-beta.10
Minor Changes
- #10170
6ddb555Thanks @gustavovalverde! - TheauthCLI now requires Node.js 22.12 or newer, following its upgrade to Commander 15. Update your Node.js runtime before upgrading the CLI.
Patch Changes
- Updated dependencies [
6ddb555]:- better-auth@1.7.0-beta.10
- @better-auth/core@1.7.0-beta.10
- @better-auth/telemetry@1.7.0-beta.10
1.7.0-beta.9
Patch Changes
- Updated dependencies []:
- better-auth@1.7.0-beta.9
- @better-auth/core@1.7.0-beta.9
- @better-auth/telemetry@1.7.0-beta.9
1.7.0-beta.8
Patch Changes
- Updated dependencies [
7c7313c,06daf70,a83152e,97903c9,3a79aff]:- better-auth@1.7.0-beta.8
- @better-auth/core@1.7.0-beta.8
- @better-auth/telemetry@1.7.0-beta.8
1.7.0-beta.7
Patch Changes
- Updated dependencies [
3d04fab,de8394d]:- better-auth@1.7.0-beta.7
- @better-auth/core@1.7.0-beta.7
- @better-auth/telemetry@1.7.0-beta.7
1.7.0-beta.6
Patch Changes
- Updated dependencies [
b36c38f,73541c1,bf39cbf,e53582c,aedcb97,2196ea6,d2a79ba,34558bc,652fa53,6fe9faa,ad35ead]:- better-auth@1.7.0-beta.6
- @better-auth/core@1.7.0-beta.6
- @better-auth/telemetry@1.7.0-beta.6
1.7.0-beta.5
Patch Changes
- Updated dependencies [
0cbaf81,e014029,ec8a38c,7fe0e2b,4f53b61,e0d2b9e,91f235f,76a3342,41cca60]:- better-auth@1.7.0-beta.5
- @better-auth/core@1.7.0-beta.5
- @better-auth/telemetry@1.7.0-beta.5
1.7.0-beta.4
Minor Changes
- #9547
15bb169Thanks @GautamBytes! - Add acreate-adminCLI command for creating an initial admin user through the configured Better Auth instance.
1.6.30
Patch Changes
- Updated dependencies [
07c1718]:- @better-auth/core@1.6.30
- better-auth@1.6.30
- @better-auth/telemetry@1.6.30
1.6.29
Patch Changes
- Updated dependencies [
e6e1b4e]:- better-auth@1.6.29
- @better-auth/core@1.6.29
- @better-auth/telemetry@1.6.29
1.6.28
Patch Changes
- Updated dependencies [
773de54,2ad2928]:- better-auth@1.6.28
- @better-auth/core@1.6.28
- @better-auth/telemetry@1.6.28
1.6.27
Patch Changes
-
#10743
b8077b7Thanks @bytaesu! - The upgrade command now targets the running CLI version, including prereleases, instead of the npmlatesttag. -
Updated dependencies [
2ae491e,90b5093]:- @better-auth/core@1.6.27
- better-auth@1.6.27
- @better-auth/telemetry@1.6.27
1.6.26
Patch Changes
- Updated dependencies [
9ede805,5a811f1,d8327f1,e2c73fb,af50c45,701cd43,a30e274,e7b0eba,2b4a14f,7552a3b,ea38fca,a03e4c1]:- better-auth@1.6.26
- @better-auth/core@1.6.26
- @better-auth/telemetry@1.6.26
1.6.25
Patch Changes
- Updated dependencies [
5124c34,0ffd1fb,7439359]:- better-auth@1.6.25
- @better-auth/core@1.6.25
- @better-auth/telemetry@1.6.25
1.6.24
Patch Changes
-
#10302
0f2cc1bThanks @momomuchu! - Recover whenauth generate's config imports the not-yet-generated--outputfile (e.g. Convex first-runimport schema from "./schema"), by stubbing a temporary placeholder and retrying config load. -
#10221
6f3ba45Thanks @paoloricciuti! - fix: stub SvelteKit's explicit-environment-variables modules -
#10352
097eecdThanks @ping-maxwell! - Disambiguate Drizzle relations with matchingrelationNamevalues when a table has multiple foreign keys to the same model. -
#10333
99dbdd7Thanks @c-nicol! - Fixes Drizzle schema generation for fields that are both unique: true and index: true. -
Updated dependencies [
03dc5a0,7508940,bae7198,ef4d273,6758231,99dbdd7,086ca91,8f2dedd,4e685ee,3bf0e49,f59a0ee,54fab08,0f2cc1b,ae78109,46d2bf0,29a373e,f6d18fa,f23ce50,c4d1dda]:- better-auth@1.6.24
- @better-auth/core@1.6.24
- @better-auth/telemetry@1.6.24
1.6.23
Patch Changes
-
#10259
3fedfcbThanks @bytaesu! - Fixbetter-auth generateemitting an invalid Drizzle schema when a field's string default value contains a quote or backslash. -
Updated dependencies [
8581f97]:- better-auth@1.6.23
- @better-auth/core@1.6.23
- @better-auth/telemetry@1.6.23
1.6.22
Patch Changes
- Updated dependencies [
c06a56d,8bd43d9,3a035e9]:- better-auth@1.6.22
- @better-auth/core@1.6.22
- @better-auth/telemetry@1.6.22
1.6.21
Patch Changes
-
#10198
570267cThanks @rachit367! - HonordisableMigrationon plugin schema tables. Tables flagged withdisableMigration: trueare now skipped bybetter-auth generate(Drizzle and Prisma output) and by the runtime migrator, instead of being emitted and created anyway. The flag was previously dropped while assembling the table list, so it had no effect. -
Updated dependencies [
e0762a1,882cf9e,f52e1ab,90d509e,b5bec19,816d7f9,239bcc8,1bc370a,570267c,461ca6f,88409b0,5953157,b046f9e,ae647b4]:- better-auth@1.6.21
- @better-auth/core@1.6.21
- @better-auth/telemetry@1.6.21
1.6.20
Patch Changes
- Updated dependencies [
21448b1,8ecf238,930f534]:- better-auth@1.6.20
- @better-auth/core@1.6.20
- @better-auth/telemetry@1.6.20
1.6.19
Patch Changes
-
#9564
cfbb9a0Thanks @brone1323! - fix(cli): handle directory path passed to --output in generate command -
#10048
d6aec12Thanks @tsushanth! - fix(cli): serialize array additionalField defaultValue in drizzle generator -
Updated dependencies [
de4aa52,b4b0266,5bd5e1c,581f827,8407885,c1a8a64,635f190,a787e0b,c2f718f,7d18175]:- better-auth@1.6.19
- @better-auth/core@1.6.19
- @better-auth/telemetry@1.6.19
1.6.18
Patch Changes
- Updated dependencies [
9ef7240,b21a5f7]:- better-auth@1.6.18
- @better-auth/core@1.6.18
- @better-auth/telemetry@1.6.18
1.6.17
Patch Changes
-
#9834
6987c62Thanks @bytaesu! - Resolve framework virtual-module imports when loading the auth config so the CLI no longer crashes on them: SvelteKit ($app/*,$env/*,$service-worker), Vite asset and query imports (?raw,?url,?inline,?worker,.css,.svg, and other known asset extensions), and Cloudflare Workers (cloudflare:workers). tsconfigpathsaliases (including SvelteKit's$liband anykit.alias) continue to resolve through the project's tsconfig. -
#9729
108aaddThanks @GautamBytes! - Prisma schema generation now updates existing numeric fields whenbigintchanges, so regenerating after switching betweenbigint: trueandbigint: falseemits the correctBigIntorInttype. -
Updated dependencies [
baeaa00,3e99e6c,96c78c3,baeaa00,baeaa00,0c3856f,baeaa00,baeaa00,ed7b6c9,e0a768c,7343284,0c3856f,baeaa00,baeaa00,7343284,7343284,0c3856f,fdef997,0c3856f,d9c526b,0c3856f,fdef997,baeaa00,baeaa00,baeaa00,baeaa00,fdef997,7343284,baeaa00,8960f5f,baeaa00,5c289b5,1dbf5bb,baeaa00,baeaa00,59e0ccb,b803c61,fdef997]:- better-auth@1.6.17
- @better-auth/core@1.6.17
- @better-auth/telemetry@1.6.17
1.6.16
Patch Changes
- Updated dependencies [
cb1cbfa,cb1cbfa,cb1cbfa,cb1cbfa,cb1cbfa,cb1cbfa,87e7aa5,cb1cbfa,cb1cbfa,cb1cbfa,893cf6c,cb1cbfa,cb1cbfa,5e49c56,cb1cbfa]:- better-auth@1.6.16
- @better-auth/core@1.6.16
- @better-auth/telemetry@1.6.16
1.6.15
Patch Changes
- Updated dependencies [
1012b69,ad60333,0933c05,b0ddfd3]:- better-auth@1.6.15
- @better-auth/core@1.6.15
- @better-auth/telemetry@1.6.15
1.6.14
Patch Changes
- Updated dependencies [
2d9781a,5a2d642,13abc79,9d3450a]:- better-auth@1.6.14
- @better-auth/core@1.6.14
- @better-auth/telemetry@1.6.14
1.6.13
Patch Changes
- Updated dependencies [
e7eb45b,03e6c94,1e5b808,13abc79]:- better-auth@1.7.0-beta.4
- @better-auth/core@1.7.0-beta.4
- @better-auth/telemetry@1.7.0-beta.4
1.7.0-beta.3
Minor Changes
- #9501
526aa32Thanks @bytaesu! - The CLI now auto-detects auth configs that export the same instance as both a named export and the default export (e.g.export const auth = betterAuth(...); export default auth;). Previously such configs failed when no explicit--configpath was passed.
Patch Changes
- Updated dependencies [
4e8e4c7,523f95c,729c00d]:- better-auth@1.7.0-beta.3
- @better-auth/core@1.7.0-beta.3
- @better-auth/telemetry@1.7.0-beta.3
1.7.0-beta.2
Patch Changes
- Updated dependencies [
9aed910,acbd6ef,954b664,39d6af2]:- better-auth@1.7.0-beta.2
- @better-auth/core@1.7.0-beta.2
- @better-auth/telemetry@1.7.0-beta.2
1.7.0-beta.1
Patch Changes
- Updated dependencies [
5142e9c,484ce6a,f875897,c7d2253,9a6d475,513dabb,6f2948e]:- better-auth@1.7.0-beta.1
- @better-auth/core@1.7.0-beta.1
- @better-auth/telemetry@1.7.0-beta.1
1.7.0-beta.0
1.6.10
Patch Changes
-
#9455
e44427bThanks @GautamBytes! - Fixauth initto generate working MySQL and PostgreSQL Kysely database configs by passing the database driver directly. -
Updated dependencies [
1e0f26d,8c1e917,b2d655c,09f1327,906b7b3,e9c978e,e71aad3,80a655d,15ff28a,88a7c67,9a7b51d,1b25902,cf59136,a597ee0,fc02ced,9f1ef1f,36ef808,c1336c5,3a9a2c3,fde0432,2220a6d]:- better-auth@1.6.10
- @better-auth/core@1.6.10
- @better-auth/telemetry@1.6.10
1.6.9
Patch Changes
- Updated dependencies [
815ecf6]:- @better-auth/core@1.6.9
- better-auth@1.6.9
- @better-auth/telemetry@1.6.9
1.6.8
Patch Changes
- Updated dependencies [
856ab24,9aa8e63]:- better-auth@1.6.8
- @better-auth/core@1.6.8
- @better-auth/telemetry@1.6.8
1.6.7
Patch Changes
- Updated dependencies [
307196a,4a180f0,4f373ee,e1b1cfc,d053a45]:- better-auth@1.6.7
- @better-auth/core@1.6.7
- @better-auth/telemetry@1.6.7
1.6.6
Patch Changes
- Updated dependencies [
b5742f9,4debfb6,9ea7eb1,a844c7d,ab4c10f,a61083e,e64ff72]:- @better-auth/core@1.6.6
- better-auth@1.6.6
- @better-auth/telemetry@1.6.6
1.6.5
Patch Changes
- Updated dependencies [
938dd80,0538627]:- better-auth@1.6.5
- @better-auth/core@1.6.5
- @better-auth/telemetry@1.6.5
1.6.4
Patch Changes
- Updated dependencies [
9aed910,acbd6ef,39d6af2]:- better-auth@1.6.4
- @better-auth/core@1.6.4
- @better-auth/telemetry@1.6.4
1.6.3
Patch Changes
-
#9032
4673c6dThanks @bytaesu! - fix tsconfig path alias resolution for extended configs and mid-path wildcards -
Updated dependencies [
6ce30cf,f6428d0,c5066fe,5f84335,93d3871,544f1c6]:- better-auth@1.7.0-beta.0
- @better-auth/core@1.7.0-beta.0
- @better-auth/telemetry@1.7.0-beta.0
-
Updated dependencies [
5142e9c,484ce6a,f875897,6ce30cf,f6428d0,9a6d475,513dabb,c5066fe,5f84335]:- better-auth@1.6.3
- @better-auth/core@1.6.3
- @better-auth/telemetry@1.6.3
1.6.2
Patch Changes
- Updated dependencies [
9deb793,2cbcb9b,b20fa42,608d8c3,8409843,e78a7b1]:- better-auth@1.6.2
- @better-auth/core@1.6.2
- @better-auth/telemetry@1.6.2
1.6.1
Patch Changes
- Updated dependencies [
2e537df,f61ad1c,7495830]:- better-auth@1.6.1
- @better-auth/core@1.6.1
- @better-auth/telemetry@1.6.1
1.6.0
Minor Changes
- #8836
5dd9e44Thanks @gustavovalverde! - Migrate MCP server URL to mcp.better-auth.com
Patch Changes
- Updated dependencies [
dd537cb,bd9bd58,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,5dd9e44,469eee6,560230f]:- better-auth@1.6.0
- @better-auth/core@1.6.0
- @better-auth/telemetry@1.6.0
1.6.0-beta.0
Minor Changes
28b1291Thanks @gustavovalverde! - Migrate MCP server URL to mcp.better-auth.com