@better-auth/core breaking changes
Updated December 4, 2026
On this page
Latest version 1.7.29, released November 28, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@better-auth/core 1.7.27 breaking changes
- Behavior changed
jwks.keyPairConfig.alg
If jwks.keyPairConfig.alg is not set and the newest key uses another algorithm, ID tokens, /token JWTs and cookie-cache JWTs change alg and kid on the next unpinned signature. Update verifiers that hard-code the old algorithm or never... github.com - Default changed
originBoundFields
originBoundFields now defaults to ["post_logout_redirect_uris"], so a client_uri on a different origin than the client_id is no longer checked. To keep rejecting it, add "client_uri" to originBoundFields. github.com
@better-auth/core 1.7.26 breaking changes
- Behavior changed
adapter.getJwks
The custom JWT plugin adapter.getJwks is now called on every verification instead of its keys being cached. If reads are expensive, add caching inside your key store. github.com - Signature changed
oauth2:ProviderOptions
Was type ProviderOptions<Profile extends object = object> = {clientId?: LiteralString | string[] | undefined; clientSecret?: string | undefined; scope?: string[] | undefined; disableDefaultScope?: boolean | undefined; redirectURI?: string... npmjs.com - Signature changed
social-providers:kakao
Was const kakao: (options: KakaoOptions) => {id: "kakao"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<KakaoProfile>) => number; createAuthorizationURL({state, scopes, redirectURI, loginHint, additionalParams}: {state... npmjs.com - Signature changed
social-providers:KakaoOptions.clientId
Was clientId: string; now clientId: string | string[]. npmjs.com - Signature changed
social-providers:socialProviders
Was const socialProviders: {apple: (options: AppleOptions) => {id: "apple"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<AppleProfile>) => string; createAuthorizationURL({state, scopes, redirectURI, additionalParams... npmjs.com - Signature changed
social-providers:zoom
Was const zoom: (userOptions: ZoomOptions) => {id: "zoom"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<ZoomProfile>) => string; createAuthorizationURL: ({state, redirectURI, codeVerifier, additionalParams}: {state... npmjs.com
@better-auth/core 1.7.25 breaking changes
- Signature changed
oauth2:createDpopReplayStore
Was function createDpopReplayStore(reservations: DpopReplayReservations): DpopReplayStore; now function createDpopReplayStore(source: DpopReplayAuthContext | DpopReplayReservations): DpopReplayStore. npmjs.com
@better-auth/core 1.7.24 breaking changes
- Behavior changed
requireActiveAccessToken
requireActiveAccessToken checks only the token and does not enforce DPoP binding. If you accept DPoP-bound tokens, call enforceDpopBinding from better-auth/oauth2 in your endpoint with the request and a shared replay store. github.com
@better-auth/core 1.7.23 breaking changes
- Behavior changed
If your CORS layer sets its own Access-Control-Expose-Headers, add WWW-Authenticate to it so browser clients can read challenges. github.com
@better-auth/core 1.7.21 breaking changes
- Behavior changed
baseURL.allowedHosts
If a wildcard in baseURL.allowedHosts covers your passkey rpID and you add tenants at runtime, return their origins from a trustedOrigins function. github.com - Behavior changed
discoveryUrl
Discovery requests that redirect to another origin now fail. Set discoveryUrl to the final URL if you set discoveryHeaders. github.com - Behavior changed
post_logout_redirect_uris
Clients that match on invalid_client_metadata for rejected post_logout_redirect_uris must check for invalid_redirect_uri instead. github.com - Behavior changed
sendVerificationEmail
A thrown error is now logged and sign-up still succeeds. To reject a sign-up, use a databaseHooks.user.create.before hook instead. github.com - Behavior changed
update
The update call now changes only one row when a non-unique filter matches several rows. If you need every matching row changed, use updateMany instead. github.com - Signature changed
db/internal:encodeDeterministicId
Was function encodeDeterministicId(digest: Uint8Array, options: Pick<BetterAuthOptions, "advanced">): string; now function encodeDeterministicId(digest: Uint8Array, options: Pick<BetterAuthOptions, "advanced">, target?: {adapter... npmjs.com - Signature changed
oauth2:refreshAccessToken
Was function refreshAccessToken({refreshToken, options, tokenEndpoint, authentication, tokenEndpointAuth, extraParams, resource}: RefreshAccessTokenInput): Promise<OAuth2Tokens>; now function refreshAccessToken({refreshToken, options... npmjs.com - Signature changed
oauth2:refreshAccessTokenRequest
Was function refreshAccessTokenRequest({refreshToken, options, authentication, tokenEndpointAuth, tokenEndpoint, extraParams, resource}: RefreshAccessTokenRequestInput): Promise<{body: URLSearchParams; headers: Record<string, string>;}>... npmjs.com
Older versions
21 older versions, each with its first changes. Sign up to see every change
Show 21 older versions
@better-auth/core 1.7.20 breaking changes
- Behavior changed
Discovery and the iss parameter no longer rewrite an http issuer to https. Set baseURL to the public https URL. github.com
@better-auth/core 1.7.19 breaking changes
- Behavior changed
device.token
A client_id rejected by validateClient now gets invalid_client instead of invalid_grant. Code that matches the old error code must be updated. github.com
@better-auth/core 1.7.16 breaking changes
- Signature changed
social-providers:socialProviders
Was const socialProviders: {apple: (options: AppleOptions) => {id: "apple"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<AppleProfile>) => string; createAuthorizationURL({state, scopes, redirectURI, additionalParams... npmjs.com - Signature changed
social-providers:zoom
Was const zoom: (userOptions: ZoomOptions) => {id: "zoom"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<ZoomProfile>) => string; createAuthorizationURL: ({state, redirectURI, codeVerifier, additionalParams}: {state... npmjs.com
@better-auth/core 1.7.15 breaking changes
- Behavior changed
Token exchange, refresh, verification, and JWKS signing key requests from built-in social providers no longer follow HTTP redirects. Code relying on redirected endpoints must point at the final URL. github.com - Behavior changed
internalAdapter.createSession
Sessions created outside an endpoint, such as through internalAdapter.createSession, now fail for banned users. Code that creates sessions for banned users must handle this error. github.com
And 1 more in this version.
@better-auth/core 1.7.14 breaking changes
- Signature changed
social-providers:kakao
Was const kakao: (options: KakaoOptions) => {id: "kakao"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<KakaoProfile>) => number; createAuthorizationURL({state, scopes, redirectURI, additionalParams}: {state: string... npmjs.com - Signature changed
social-providers:socialProviders
Was const socialProviders: {apple: (options: AppleOptions) => {id: "apple"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<AppleProfile>) => string; createAuthorizationURL({state, scopes, redirectURI, additionalParams... npmjs.com
@better-auth/core 1.7.13 breaking changes
- Signature changed
api:createAuthMiddleware
Was const createAuthMiddleware: {<Options extends _$better_call0.MiddlewareOptions, R>(options: Options, handler: (ctx: _$better_call0.MiddlewareContext<Options, _$_better_auth_core0.PluginContext<_$_better_auth_core0.BetterAuthOptions> &... npmjs.com - Signature changed
api:optionsMiddleware
Was const optionsMiddleware: _$better_call0.Middleware<_$better_call0.MiddlewareOptions, <InputCtx extends _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>>(inputContext: InputCtx) => Promise<AuthContext>>; now const... npmjs.com
And 10 more in this version.
@better-auth/core 1.7.12 breaking changes
- Behavior changed
ID token sign-in rejects tokens for a provider that has no clientId. Set clientId to every client ID your apps sign in with. github.com - Behavior changed
A custom Facebook getUserInfo no longer receives client-submitted access tokens issued to another Facebook app, and ID tokens missing exp or iat are rejected. github.com
And 12 more in this version.
@better-auth/core 1.7.11 breaking changes
- Behavior changed
Sign-in with Twitch and Paybin now validates ID token signatures and claims. Custom Paybin issuers must publish RS256 signing keys at the issuer's well-known JWKS path or sign-in will fail. github.com - Signature changed
BetterAuthPlugin
Was type BetterAuthPlugin = BetterAuthPluginErrorCodePart & {id: LiteralString; version?: string | undefined; init?: ((ctx: AuthContext) => Awaitable<{context?: DeepPartial<Omit<AuthContext, "options">> & Record<string, unknown>; options?... npmjs.com
And 2 more in this version.
@better-auth/core 1.7.8 breaking changes
- Signature changed
social-providers:microsoft
Was const microsoft: (options: MicrosoftOptions) => {id: "microsoft"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<MicrosoftEntraIDProfile>) => string; createAuthorizationURL(data: {state: string; codeVerifier: string... npmjs.com - Signature changed
social-providers:socialProviders
Was const socialProviders: {apple: (options: AppleOptions) => {id: "apple"; name: string; accountSubject: ({profile}: OAuthAccountKeyContext<AppleProfile>) => string; createAuthorizationURL({state, scopes, redirectURI, additionalParams... npmjs.com
@better-auth/core 1.7.7 breaking changes
- Behavior changed
Servers sharing verification storage must be upgraded together, and users must request new Magic Links. Pending OAuth and SAML sign-ins must be restarted. No database migration is required. github.com - Behavior changed
disableSignUp
ID-token sign-in previously ignored disableSignUp on social providers. It is now enforced, so sign-ins that would create new users may be refused. github.com
And 1 more in this version.
@better-auth/core 1.7.6 breaking changes
- Behavior changed
maxPasswordLength
Passwords over the maxPasswordLength limit are now refused with PASSWORD_TOO_LONG before hashing or verification, so code that relied on longer passwords being accepted must handle this error. github.com - Signature changed
api:createAuthMiddleware
Was const createAuthMiddleware: {<Options extends _$better_call0.MiddlewareOptions, R>(options: Options, handler: (ctx: _$better_call0.MiddlewareContext<Options, _$_better_auth_core0.PluginContext<_$_better_auth_core0.BetterAuthOptions> &... npmjs.com
And 16 more in this version.
@better-auth/core 1.7.5 breaking changes
- Signature changed
BetterAuthOptions
Was type BetterAuthOptions = {appName?: string | undefined; baseURL?: BaseURLConfig | undefined; basePath?: string | undefined; secret?: string | undefined; secrets?: Array<{version: number; value: string;}> | undefined; database?... npmjs.com - Signature changed
BetterAuthOptions.database
Was database?: (PostgresPool | MysqlPool | SqliteDatabase | Dialect | DBAdapterInstance | Database | DatabaseSync | D1Database | {dialect: Dialect; type: KyselyDatabaseType; casing?: "snake" | "camel"; debugLogs?: DBAdapterDebugLogOption... npmjs.com
@better-auth/core 1.7.4 breaking changes
- Signature changed
BetterAuthOptions
Was type BetterAuthOptions = {appName?: string | undefined; baseURL?: BaseURLConfig | undefined; basePath?: string | undefined; secret?: string | undefined; secrets?: Array<{version: number; value: string;}> | undefined; database?... npmjs.com
@better-auth/core 1.7.3 breaking changes
- Removed
db:createLocalAccountIssuer
createLocalAccountIssuer was removed in @better-auth/core 1.7.3 npmjs.com - Removed
db:createOAuthAccountIssuer
createOAuthAccountIssuer was removed in @better-auth/core 1.7.3 npmjs.com
And 21 more in this version.
@better-auth/core 1.7.2 breaking changes
- Behavior changed
Validation of relative callback and redirect URLs with paths, queries, and fragments was changed. Relative URLs that were accepted before may now be validated differently. github.com - Behavior changed
Built-in placeholder emails were standardized to the namespaced {identifier}@{namespace}.placeholder.invalid format. Code that matches or stores the old placeholder email format may need to be updated. github.com
And 2 more in this version.
@better-auth/core 1.7.0 breaking changes
- Removed
BetterAuthOptions.experimental
BetterAuthOptions.experimental was removed in @better-auth/core 1.7.0 npmjs.com - Removed
BetterAuthRateLimitStorage.get
BetterAuthRateLimitStorage.get was removed in @better-auth/core 1.7.0 npmjs.com
And 165 more in this version.
@better-auth/core 1.7.0-beta.6 breaking changes
- Removed
createMcpAuthClient
Install @better-auth/mcp and use createMcpResourceClient in place of createMcpAuthClient. github.com - Removed
mcp
The MCP plugin now lives in @better-auth/mcp; update imports from better-auth/plugins. github.com
And 5 more in this version.
@better-auth/core 1.7.0-beta.5 breaking changes
- Removed
oauth2:OAuthProvider.verifyIdToken
Custom providers must replace verifyIdToken with an idToken config object containing jwks, issuer, and audience. npmjs.com - Removed
signIn.social
PayPal no longer supports signIn.social with idToken. The redirect flow still works. github.com
And 2 more in this version.
@better-auth/core 1.7.0-beta.4 breaking changes
- Behavior changed
Redirect URIs containing a fragment are now rejected. github.com - Behavior changed
Access control now rejects empty action lists. github.com
And 3 more in this version.
@better-auth/core 1.7.0-beta.3 breaking changes
- Behavior changed
deleteAccount
The deleteAccount parameter changed from accountId to id in the internal adapter. github.com
@better-auth/core 1.7.0-beta.0 breaking changes
- Removed
enableTwoFactor.skipVerificationOnEnable
The skipVerificationOnEnable option was removed; use method "otp" for immediate activation or the standard TOTP verification flow. github.com - Behavior changed
allowIdpInitiated
allowIdpInitiated now defaults to false; set saml.allowIdpInitiated to true to keep the previous IdP-initiated behavior. github.com
And 1 more in this version.
Related packages
- better-auth
- @better-auth/oauth-provider
- @better-auth/sso
- @better-auth/expo
- @better-auth/drizzle-adapter
- @better-auth/infra
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.