Better Auth is comprehensive authentication library for TypeScript that provides a wide range of features to make authentication easier and more secure.
Nov 20, 2026
[!IMPORTANT] Action required
- If you have no key for
jwks.keyPairConfig.algand your newest key uses anotherjwks.keyPairConfigsalgorithm, your ID tokens,/tokenJWTs, and cookie-cache JWTs changealgandkidon the next unpinned signature, so update verifiers that hard-code the old algorithm or never refetch the JWKS for an unknownkid. (#12655)- If you want to keep rejecting a
client_urion a different origin than theclient_id, add"client_uri"tooriginBoundFields, which now defaults to["post_logout_redirect_uris"]. (#12822)
/update-user when the request has no body (#12810)/sign-up/email and /update-user when the request has no body/sign-in/anonymous to validate the request origin, returning a 403 for browser requests from origins outside trustedOrigins (#12809)jwks.keyPairConfig.alg algorithm (#12655)getTestInstance from better-auth/test to run every instance cleanup even when one fails, so databases and connections are not left open (#12553)POST requests without a body, such as /sign-out or /revoke-sessions, failing with a 415 on Deno, Next.js, Nuxt and other servers that pass an empty body stream (#12805)For detailed changes, see CHANGELOG
isCrossOriginJwksUriAllowed option to cimd() so you can accept Client ID Metadata Document clients whose jwks_uri is on a different origin than their client_id (#12823)jwks_uri, such as setting client_credentials_scopes through adminUpdateOAuthClient (#12823)jwksStaleIfError option to keep verifying client assertions with cached jwks_uri keys while refetching fails transiently (#12824)requireOpenId option to oauthProvider to reject /oauth2/authorize requests that lack the openid scope with invalid_scope (#12729)resourceSeedScope option to oauthProvider so apps that build Better Auth on every request can stop re-reading oauthResource each time (#12733)advertisedMetadata.token_endpoint_auth_methods_supported so providers can advertise accepted token endpoint client authentication methods, including public clients (#12732)jwks_uri responses refused before their body is read, such as error statuses or non-JSON content types, holding connections open (#12819)invalid_signature when a proxy, router, or login page URL-decodes it once (#12728)offline_access to stop working once their session expires or is deleted (#12812)offline_access grants on other devices after using a session-bound refresh token following sign-out (#12812)oauthProviderClient to send form-encoded bodies as form fields and leave non-object JSON bodies such as arrays unchanged (#12726)oauthProviderClient to stop rewriting request bodies on pages whose query string is not a signed OAuth query (#12726)jwks_uri client authentication, and Client ID Metadata Document fetches failing on Cloudflare Workers (#12817)signIn.sso to resume the OAuth authorization instead of leaving the user on the sign-in callbackURL (#12727)private_key_jwt clients losing their cached jwks_uri key set while still authenticating when more than 500 key sets are cached (#12721)private_key_jwt authentication so concurrent assertions for the same jwks_uri share a single fetch of the client's key set (#12721)/oauth2/introspect to return the client ID as sub for JWT client_credentials tokens issued to pairwise clients (#12671)For detailed changes, see CHANGELOG
isCrossOriginJwksUriAllowed option to cimd() so you can accept Client ID Metadata Document clients whose jwks_uri is on a different origin than their client_id (#12823)metadataStaleIfError option to keep known clients working through brief metadata host outages (#12824)jwks_uri responses refused before their body is read, such as error statuses or non-JSON content types, holding connections open (#12819)@better-auth/cimd/node keeping connections open after bodyless responses such as 304 Not Modified to a metadata revalidation (#12819) – 
@better-auth/cimd/node hanging forever when the server answers with 101 Switching Protocols (#12819) – 
temporarily_unavailable (#12731)client_uri on a different origin than the client_id being rejected under the default options (#12822)@better-auth/cimd/node staying stuck on DNS lookups after the request is aborted (#12818) – 
jwks_uri client authentication, and Client ID Metadata Document fetches failing on Cloudflare Workers (#12817)For detailed changes, see CHANGELOG
AsyncLocalStorage when available (#12807)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@bytaesu, @deepanshupal, @devsouhardo, @EhsanulHaqueSiam, @ghazy2001, @gustavovalverde, @hardikguptaofficialgit, @kaiizer777, @Neekoras, @NoiceHax, @officialasishkumar, @rendermani
Full changelog: v1.7.26...v1.7.27
Nov 19, 2026
refreshToken failing to store rotated tokens with adapters that reject the account id in update data, such as Convex (#12063)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@jainamm-gala
Full changelog: v1.6.34...v1.6.35
Nov 18, 2026
[!IMPORTANT] Action required
- If you use a custom JWT plugin
adapter.getJwksand reads are expensive, add caching inside your key store, since it is now called on every verification. (#12624)
getAccountFields option to social providers for storing custom values on the provider account at sign-in (#12734)For detailed changes, see CHANGELOG
getAccountFields option to social providers for storing custom values on the provider account at sign-in (#12734)signIn.social (#12316)& (#12620)2000::/3 as public, so they are now rejected as reserved (#12692)code_challenge and code_verifier (#12315)For detailed changes, see CHANGELOG
assertionClockTolerance option so private_key_jwt clients with slight clock drift no longer fail token exchange (#12720)WWW-Authenticate: Basic challenge to OAuth provider 401 invalid_client responses for introspection and revocation requests without client credentials and for private_key_jwt assertions with invalid signatures (#12622)requireMcpAuth to call a custom JWT plugin adapter.getJwks on every verification instead of caching its keys (#12624)adapter.getJwks to receive the request again when the OAuth provider reads signing keys and when requireMcpAuth verifies a token (#12624)/userinfo returning a 500 error when the profile scope is requested for a user with no name (#11201)sid for a session that has already ended (#12723)decrypt rejects an unrecognized value (#12725)For detailed changes, see CHANGELOG
client_id URLs whose host is a public IPv6 literal (#12694)For detailed changes, see CHANGELOG
requireMcpAuth to call a custom JWT plugin adapter.getJwks on every verification instead of caching its keys (#12624)adapter.getJwks to receive the request again when the OAuth provider reads signing keys and when requireMcpAuth verifies a token (#12624)For detailed changes, see CHANGELOG
listSCIMManagedConnectionEvents with optional limit, offset, and sortDirection fields and a total count in the response (#10793)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@afn, @bytaesu, @claude, @gustavovalverde, @honuuk, @jonathansamines, @luchersou, @MagsMagnoli, @onmax, @pardeep-fs, @SibteProf, @umeraamir69, @wfcastaneda
Full changelog: v1.7.25...v1.7.26
Nov 14, 2026
[!IMPORTANT] Action required
- If you want
oauthProviderResourceClient(auth)to keep fetching signing keys over HTTP, setjwksUrl. (#12578)
Access-Control-Expose-Headers names set earlier by a hook or the endpoint, so cross-origin browser clients keep access to exposed headers (#12603)For detailed changes, see CHANGELOG
WWW-Authenticate to cross-origin browser clients on every endpoint, including client registration and token endpoint authentication (#12603)id_token_hint with in-process signing keys (#12578)jwt() plugin object (#12578)oauthProviderResourceClient(auth) token verification on runtimes that block requests to their own hostname by reading signing keys from the auth instance (#12578)For detailed changes, see CHANGELOG
%20 becoming + (#12572)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@gustavovalverde
Full changelog: v1.7.24...v1.7.25
Nov 14, 2026
[!IMPORTANT] Action required
- If you accept DPoP-bound tokens, call
enforceDpopBindingfrombetter-auth/oauth2in your endpoint with the request and a shared replay store. (#12498)
For detailed changes, see CHANGELOG
requireActiveAccessToken checks only the token and does not enforce DPoP binding (#12498)better-call (#12503)better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)baseURL ends in / (#12598)For detailed changes, see CHANGELOG
better-call (#12503)better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call (#12503)better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call (#12503)better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call (#12503)better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call (#12503)better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
@better-auth/expo to use the better-call copy installed by better-auth instead of adding a second copy to Expo apps (#12502) – 
For detailed changes, see CHANGELOG
better-call 1.4 patch release from 1.4.5 as a peer, so plugins share one copy (#12502)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@gustavovalverde
Full changelog: v1.7.23...v1.7.24
Nov 13, 2026
[!IMPORTANT] Action required
- If you want
requireMcpAuthto keep fetching signing keys over HTTP, setjwksUrl. (#12501)- If your CORS layer sets its own
Access-Control-Expose-Headers, includeWWW-Authenticatein it. (#12521)- If you run
createMcpProtectedRequestHandlerin a multi-instance or serverless deployment, setdpop.replayStoreto a shared store such ascreateDpopReplayStore(internalAdapter). (#12504)
getTestInstance sharing one MongoDB database across test files, so parallel tests no longer delete each other's data (#12543)For detailed changes, see CHANGELOG
dpop.replayStore documentation on createMcpProtectedRequestHandler to explain the in-memory default and when to use a shared store (#12504)requireMcpAuth to accept tokens when the JWT plugin publishes its keys at jwks.remoteUrl (#12501)requireMcpAuth returning a 500 on runtimes that block requests to their own hostname, such as a single Cloudflare Worker (#12501)WWW-Authenticate challenges from OAuth resource servers and MCP helpers (#12521)DPoP insufficient_scope challenge instead of Bearer (#12525)For detailed changes, see CHANGELOG
WWW-Authenticate challenges from OAuth resource servers and MCP helpers (#12521)Bearer challenge with resource_metadata (#12515)DPoP insufficient_scope challenge instead of Bearer (#12525)redirect_uri, resource, or DPoP validation consuming the authorization or device code (#12499)For detailed changes, see CHANGELOG
advanced.database.validateSchema documentation to explain when validation runs and which adapters skip it (#12480)requireMcpAuth returning a 500 on runtimes that block requests to their own hostname, such as a single Cloudflare Worker (#12501)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
json fields whose value is an array (#12530)For detailed changes, see CHANGELOG
generateId is "serial" after a delete (#12544)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@bytaesu, @grant0417, @gustavovalverde
Full changelog: v1.7.22...v1.7.23
Nov 12, 2026
deferSessionRefresh refresh requests failing with a 415 error in Next.js and Nuxt (#12330)ReferenceError: window is not defined when a client session subscription is cleaned up after a test environment tears down its globals (#12324)navigator does not report connectivity (#12462)user.create.before hook returning false logging a TypeError (#12331)deleteOrganization clearing the session's active organization when a beforeDeleteOrganization hook rejected the delete (#12334)revokeSession, revokeSessions, and deleteUser({ token }) to expire session cookies when revoking the current session or deleting the user (#12321)getSession to no longer leave an expired session in the request context after returning null (#12459)For detailed changes, see CHANGELOG
aud, iss, exp, or nbf claim checks to return a 401 instead of a 500 (#12432)getSession failing with "Failed to get session" when a user.additionalFields entry references a table outside the Better Auth schema (#12333)invalid_token error details when a presented token fails verification (#12445)For detailed changes, see CHANGELOG
DPoP authorization scheme to receive a DPoP challenge instead of a Bearer challenge (#12447)invalid_token error details when a presented token fails verification (#12445)/oauth2/userinfo to send a WWW-Authenticate challenge on every 401 response, including DPoP failures and requests with no token (#12446)For detailed changes, see CHANGELOG
getSession failing with "Failed to get session" when a user.additionalFields entry references a table outside the Better Auth schema (#12333)For detailed changes, see CHANGELOG
DPoP authorization scheme to receive a DPoP challenge instead of a Bearer challenge (#12447)For detailed changes, see CHANGELOG
getSession failing with "Failed to get session" when a user.additionalFields entry references a table outside the Better Auth schema (#12333)For detailed changes, see CHANGELOG
customer.subscription.updated webhooks for customers with no local subscription to log a clear warning instead of failing with a TypeError (#12473)For detailed changes, see CHANGELOG
baseURL (#12448)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@AmalkrishnaAS, @Bekacru, @bytaesu, @choksi2212, @flcrom, @ghazy2001, @gustavovalverde, @mrpmohiburrahman, @umeraamir69
Full changelog: v1.7.21...v1.7.22
Nov 11, 2026
[!IMPORTANT] Action required
- If you use SCIM with an adapter that has no native transactions, switch to an adapter with native transactions to provision users and groups. (#12413)
- If you use the MongoDB adapter and an index build fails because of duplicate values, missing
createIndexpermission, or a conflicting index on the same field, fix the cause and restart. (#12299)- If you rely on
updatechanging every row that matches a non-unique filter, useupdateManyinstead. (#12390)- If you set
discoveryHeadersand yourdiscoveryUrlredirects to another origin, setdiscoveryUrlto the final URL, because discovery now fails on cross-origin redirects. (#12179)- If your clients match on the
invalid_client_metadataerror code for rejectedpost_logout_redirect_uris, update them to check forinvalid_redirect_uri. (#12391)- If you throw from
sendVerificationEmailto reject a sign-up, use adatabaseHooks.user.create.beforehook instead, because a thrown error is now logged and the sign-up still succeeds. (#12052)- If a wildcard in
baseURL.allowedHostscovers your passkeyrpID, you don't setorigin, and you add tenants at runtime, return their origins from atrustedOriginsfunction that checks your tenant records. (#12388)
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)@db.ObjectId (#12126) – 
genericOAuth provider using discoveryUrl and OAuth provider requests using resources hanging on Cloudflare Workers (#12395)authorizationHeaders on access token refresh, added an optional headers input to refreshAccessToken and refreshAccessTokenRequest, and prevented invalid combined headers with differently cased client authentication headers (#12401)discoveryHeaders when fetching same-origin jwks_uri keys, and to follow discovery redirects only within the discoveryUrl origin (#12179)schema does not exist and relation does not exist errors on PostgreSQL during the startup schema check and npx auth@latest migrate when other schemas are dropped concurrently (#11912) – 
onExistingUserSignUp when using a background task handler with a transactional adapter (#12052)For detailed changes, see CHANGELOG
[object Promise] instead of the refresh token when formatRefreshToken.encrypt is async (#12409)@db.ObjectId (#12126) – 
genericOAuth provider using discoveryUrl and OAuth provider requests using resources hanging on Cloudflare Workers (#12395)invalid_redirect_uri instead of invalid_client_metadata for rejected post_logout_redirect_uris entries (#12391)redirect_uri is still valid (#12385)For detailed changes, see CHANGELOG
null filters on id and reference fields being coerced to 0 when advanced.database.generateId is "serial" (#12402)@db.ObjectId (#12126) – 
authorizationHeaders on access token refresh, added an optional headers input to refreshAccessToken and refreshAccessTokenRequest, and prevented invalid combined headers with differently cased client authentication headers (#12401)workerd instead of node when nodejs_compat is enabled, and exported the runtime detection from @better-auth/core/env (#12425) – 
For detailed changes, see CHANGELOG
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)saml.enableSingleLogout) for users who stay signed in past their session's first expiry, for both IdP-initiated and SP-initiated logout (#12417)allowIdpInitiated: true or enableInResponseToValidation: false is set (#12421)For detailed changes, see CHANGELOG
@db.ObjectId (#12126) – 
null failing with a validation error, and update now changes only one matching row (#12390)provider: "mongodb" to match contains, starts_with, ends_with, and case-insensitive filters as literal text instead of regex patterns (#11807)For detailed changes, see CHANGELOG
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)For detailed changes, see CHANGELOG
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)For detailed changes, see CHANGELOG
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)For detailed changes, see CHANGELOG
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)For detailed changes, see CHANGELOG
schema does not exist and relation does not exist errors on PostgreSQL during the startup schema check and npx auth@latest migrate when other schemas are dropped concurrently (#11912) – 
For detailed changes, see CHANGELOG
unique or index, preventing duplicate users from concurrent sign-ups with the same email (#12299)For detailed changes, see CHANGELOG
origin when a wildcard in baseURL.allowedHosts covers your rpID, accepting exact trusted origins instead (#12388)For detailed changes, see CHANGELOG
better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal (#12404)For detailed changes, see CHANGELOG
workerd instead of node when nodejs_compat is enabled, and exported the runtime detection from @better-auth/core/env (#12425) – 
For detailed changes, see CHANGELOG
findMany with multiple operators to create users from generated data like other adapter tests (#12409)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@ArjunCodess, @bytaesu, @ghazy2001, @gustavovalverde, @hardikguptaofficialgit, @ItzSudhan, @lakshya-dhariwal, @mallachari, @umeraamir69
Full changelog: v1.7.20...v1.7.21
Nov 10, 2026
[!IMPORTANT] Action required
- If your issuer (
baseURL, orjwt.issuerwhen set) useshttpon a non-loopback host behind a TLS-terminating proxy, setbaseURLto the publichttpsURL, since discovery and theissparameter no longer rewrite it tohttps. (#11904)
POST /oauth2/public-client-prelogin with allowPublicClientPrelogin to return a client only when its client_id matches the signed oauth_query, otherwise responding with 401 invalid_client (#12237)oauthProviderResourceClient(auth) defaults to accept issued access tokens when baseURL is only an origin, by including the auth path in the default issuer, JWKS, and introspection URLs (#12234)allowInsecureRedirectUri option so OAuth provider deployments served over HTTP on private networks can accept http redirect URIs (#11904)For detailed changes, see CHANGELOG
incrementOne and update calls using mode: "insensitive" filters to match case-insensitively on PostgreSQL and MongoDB (#11809)eq null on MongoDB to also match records where the optional field was never set (#11806)For detailed changes, see CHANGELOG
allowInsecureRedirectUri option so OAuth provider deployments served over HTTP on private networks can accept http redirect URIs (#11904)For detailed changes, see CHANGELOG
ne null where clauses in the memory adapter to no longer match records where the field was never set (#11806)For detailed changes, see CHANGELOG
saml.clockSkew to the NotBefore and NotOnOrAfter checks in samlify (#12309)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@ArjunCodess, @gustavovalverde
Full changelog: v1.7.19...v1.7.20
Nov 10, 2026
/admin/create-user leaving a user without a credential account when creating that account failed, such as a database hook throwing, which made retrying with the same email fail with USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL (#12338)/admin/create-user leaving a user without a credential account when the password was rejected, such as by the Have I Been Pwned plugin, which made retrying with the same email fail with USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL (#12335)get or HEAD (#12336)modelName and field names) leaking into other instances of the same plugin in one process (#12319)/device/token returning invalid_grant instead of invalid_client when validateClient rejects the client_id, matching /device/code and RFC 6749 section 5.2 (#12246)state_mismatch during the daylight saving time fall-back hour when OAuth state is stored in the database and the server's time zone observes daylight saving time (#12320)z.optional(), such as /get-session and Stripe's /subscription/list (#12337)organization.getInvitation to return the INVITATION_NOT_FOUND code for a missing, expired, or non-pending invitation (#12332)listMembers failing with a syntax error on PostgreSQL and MSSQL when the filter matches no members or the offset is past the last member (#12318)active-sessions list in secondary storage being stored without an expiry when every remaining session had less than a second left (#12323)For detailed changes, see CHANGELOG
--yes, and prompts appear on stderr so redirecting stdout no longer hides them (#12286)auth info --json --copy now prints valid JSON, auth secret prints only the BETTER_AUTH_SECRET line on stdout, auth login and auth logout messages go to stderr, and auth info shows tips only in an interactive terminal (#12287)--config path reports that the file doesn't exist. auth mcp and auth ai no longer report success after a failed step (#12305)auth mcp setup exit with 1 (#12275)For detailed changes, see CHANGELOG
auth.api.oauth2Consent({ headers, body }) failing with request not found when called from a server route (#12325)prefix.clientSecret getting a different error than other wrong secrets. It now gets the standard invalid_client response: 401 with a WWW-Authenticate: Basic challenge for client_secret_basic, and 400 for client_secret_post (#12327)metadata being stored as a JSON string in its json column. It is now written as an object, so Postgres jsonb operators such as -> and @> work with adapters that pass JSON through natively (Drizzle pg). Rows written as strings by earlier versions are still read (#12328)For detailed changes, see CHANGELOG
console.error in addition to the configured logger (#12317)getAccessToken and refreshToken returning the expired access token when a provider refuses a token refresh with a 200 status, as GitHub does (#12369)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
resource URLs on .localhost subdomains as non-HTTPS (#12322)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@Adnan-Husayn, @AryaKesharwani, @binaryshrey, @bytaesu, @Faiziimam, @Gourav224, @jashkarangiya, @NoiceHax, @PhillJK, @Tushar-Khandelwal-2004, @Tyagiquamar, @umeraamir69, @unjica, @YIOYIOIOI
Full changelog: v1.7.18...v1.7.19
Nov 5, 2026
[!IMPORTANT] Action required
- If you use
getTestInstancewithtestWith: "mysql", run a MySQL server at127.0.0.1:3306with therootpassword set toroot_password. (#12244)
secondaryStorage and storeSessionInDatabase to also revoke sessions created while the revocation is running, except sessions created by a session.delete.after hook, which stay active (#12259)getTestInstance from better-auth/test to close its own Postgres connection pool and SQLite database when the test file finishes, while with Vitest's default sequence.hooks: "stack" your afterAll hooks still run first and can keep using the instance (#12250)getTestInstance with testWith: "mysql" hanging, and added a separate database per instance so several instances can run in one test file (#12244)For detailed changes, see CHANGELOG
verifyOptions.typ is set together with remoteVerify (#12249)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@gustavovalverde
Full changelog: v1.7.17...v1.7.18
Nov 4, 2026
session.delete.after hook being treated as revoked during "revoke all sessions" when using secondaryStorage with storeSessionInDatabase (#12212)rememberMe: false (#12181)exp://192.168.*.*:* matching custom-scheme hosts with out-of-range or zero-padded octets (#12217)phoneNumber on sign-up and replacing a verified number when linking an account with an empty phone number (#12219)For detailed changes, see CHANGELOG
state parameter when OAuth state is stored in a cookie (#12218)For detailed changes, see CHANGELOG
create with generateId: "serial" leaving an inserted row behind when the table reports no auto-increment id (#12220)For detailed changes, see CHANGELOG
passkey() plugin is shared between auth instances where only some set baseURL (#12225)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@aliamanatali, @bytaesu
Full changelog: v1.7.16...v1.7.17
Nov 3, 2026
phoneNumber in the request, social profiles no longer set an unverified number, and verification codes use their own namespace (#12198)/admin/update-user changing phone numbers without permission. It now requires user:set-phone, so add set-phone to custom access control statements (#12198)allowedAttempts under concurrent requests, and bound email change codes to the requesting account (#12198)email_verified value such as "false" as verified, and bound generic OAuth profiles to the ID token subject (#12198)For detailed changes, see CHANGELOG
disableSignUp, requireEmailVerification, and overrideUserInfoOnSignIn (#12198)email_verified claims from Cognito and Microsoft Entra ID being read as verified (#12198)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
origin when rpID is set and a wildcard in baseURL.allowedHosts covers it (#12198)userVerification: "required" not being enforced, and applied it to authentication as well as registration (#12198)For detailed changes, see CHANGELOG
stripeCustomerId. Server code that sets it through auth.api.updateUser must write it through the database adapter instead (#12198)For detailed changes, see CHANGELOG
generateId: "serial" returning another request's record on connection pools (#12198)For detailed changes, see CHANGELOG
generateId: "serial" returning another request's record on connection pools (#12198)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@bytaesu @Bekacru @gustavovalverde @Abhishek-B-R
Full changelog: v1.7.15...v1.7.16
Nov 1, 2026
constructor field in additionalData, failing with a prototype pollution error (#12142)BETTER_AUTH_SECRETS error messages to report the entry position instead of including the entry value (#12098)update-user endpoint to reject data.id with a 400 error instead of attempting to change the user's primary key (#12099)internalAdapter.createSession (#12100)hooks.before hook being dropped from the response, with the endpoint's value winning when both set the same header or cookie (#12145)useSession(useFetch) returning no session during Nuxt SSR when baseURL is inferred from the environment (#12109)genericOAuth HubSpot helper truncating access tokens with reserved characters and now returning null instead of requesting /access-tokens/undefined when no token is present (#12108)/sign-in/username and /is-username-available rejecting usernames that sign-up accepts when validationOrder.username is post-normalization (#12097)For detailed changes, see CHANGELOG
auth init for Remix and React Router v7 to generate an app/routes/api.auth.$.ts resource route that mounts auth.handler instead of a second auth instance with an unsupported database option (#12118)auth ai overwriting MCP config files it cannot parse, such as those with comments or trailing commas, by leaving them unchanged and printing the config to add manually (#12111)auth login and auth logout re-launching the CLI through npx auth@latest in an endless loop (#12110)
– 
auth init hanging during database migration and removed a stray debug line about path aliases (#12148)For detailed changes, see CHANGELOG
/subscription/success returning a 500 for non-string callbackURL and checkoutSessionId query values by rejecting them with a 400 (#12105)/subscription/success to validate callbackURL against trusted origins after replacing {CHECKOUT_SESSION_ID}, preventing redirects to untrusted origins via checkoutSessionId (#12102)For detailed changes, see CHANGELOG
@upstash/redis (#12107)
– 
For detailed changes, see CHANGELOG
invalid_client (#12103)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@bytaesu
Full changelog: v1.7.14...v1.7.15
Nov 1, 2026
ACCOUNT_NOT_FOUND when retrieving an access token after stateless OAuth sign-in links a new provider to an existing user (#11300)For detailed changes, see CHANGELOG
samlConfig.callbackUrl as their ACS URL without spMetadata.metadata, which had failed with invalid_saml_response since 1.6.21 (#11730)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@bytaesu, @gustavovalverde
Full changelog: v1.6.33...v1.6.34
Oct 26, 2026
base32:<secret> (#12031)For detailed changes, see CHANGELOG
loginHint so the Kakao Account login page opens with the ID field prefilled (#12045)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@bytaesu, @honuuk
Full changelog: v1.7.13...v1.7.14
Oct 25, 2026
For detailed changes, see CHANGELOG
tokenEndpointAuth: { method } to the Cloudflare provider and deprecated tokenEndpointAuthMethod, which remains supported (#11997)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@allenzhou101, @bytaesu, @godwit-bo
Full changelog: v1.7.12...v1.7.13
Oct 20, 2026
[!IMPORTANT] Action required
- If you use ID token sign-in with a provider that has no
clientId, setclientIdto every client ID your apps sign in with. (#11931)
auth.api.getSession() to keep the original database error as error.cause when the session lookup fails (#11924)For detailed changes, see CHANGELOG
mapProfileToUser failing to typecheck under exactOptionalPropertyTypes when it returns undefined for name, email, or image (#11918)getUserInfo to no longer receive client-submitted access tokens issued to another Facebook app, and ID tokens missing exp or iat are now rejected (#11919)cause option as a third argument to APIError.from() to keep the underlying error for server-side callers without exposing it in the response (#11924)For detailed changes, see CHANGELOG
requireMcpAuth to accept only OAuth access tokens and reject session JWTs from the JWT plugin, even when they share the issuer and audience (#11934)For detailed changes, see CHANGELOG
exp or iat and providers with an empty client ID, matching social sign-in (#11935)For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@alpcanaydin, @bytaesu
Full changelog: v1.7.11...v1.7.12
Oct 19, 2026
int8 columns. (#10719)X-Retry-After value. (#11521)For detailed changes, see CHANGELOG
init returns with options: undefined failing type checks under exactOptionalPropertyTypes. (#11907)<issuer>/.well-known/jwks.json. (#11884)For detailed changes, see CHANGELOG
/oauth2/consent and /oauth2/continue to match their redirect responses. (#10881)For detailed changes, see CHANGELOG
For detailed changes, see CHANGELOG
Thanks to everyone who contributed to this release:
@aryan1306, @bytaesu, @cpojer, @gustavovalverde, @noobnooc, @rendermani, @sahiljagtap08
Full changelog: v1.7.10...v1.7.11