NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4985 most downloaded on npm
The most comprehensive authentication framework for TypeScript.
Latest stable
1.7.20
Last release 12 days ago
10 Nov 2026
Ships fairly regularly
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
957 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Import node:async_hooks directly - by @himself65 in https://github.com/better-auth/better-auth/issues/5198 (0717e)
node:async_hooks directly - by @himself65 in https://github.com/better-auth/better-auth/issues/5198 <samp>(0717e)</samp>where of type TwoFactorWhereUniqueInput needs at least one of id arguments - by @AlexStrNik in https://github.com/better-auth/better-auth/issues/5180 <samp>(2dab4)</samp>Your coding agent can read these notes before it upgrades. Set up the MCP server →
Ensure falsy values are valid default values - by @ocherry341 in https://github.com/better-auth/better-auth/issues/5182 (03d62)
useSession - by @ThibautCuchet in https://github.com/better-auth/better-auth/issues/5166 <samp>(af4a4)</samp>throw: true - by @ping-maxwell and Bereket Engida in https://github.com/better-auth/better-auth/issues/5079 <samp>(ba86d)</samp>sso: Add deprecated flag to the old sso plugin export - by @Bekacru in https://github.com/better-auth/better-auth/issues/5138 (2a724)
sso plugin export - by @Bekacru in https://github.com/better-auth/better-auth/issues/5138 <samp>(2a724)</samp>Deprecate options.advanced.generateId type - by @himself65 (48249)
cli - by @Kinfe123 and @himself65 in https://github.com/better-auth/better-auth/issues/4872 <samp>(70cb4)</samp>requestPasswordReset - by @Eazash in https://github.com/better-auth/better-auth/issues/5014 <samp>(2f94b)</samp>options.advanced.generateId type - by @himself65 <samp>(48249)</samp>null - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/5036 <samp>(68608)</samp>getCustomerCreateParams not actually being called - by @ebalo55 and @himself65 in https://github.com/better-auth/better-auth/issues/5019 <samp>(13872)</samp>Add support for custom callback for authorization url - by @Bekacru in https://github.com/better-auth/better-auth/issues/4919 (78506)
onDelete is ignored - by @himself65 in https://github.com/better-auth/better-auth/issues/4973 <samp>(7e8de)</samp>Auth - by @himself65 in https://github.com/better-auth/better-auth/issues/4930 <samp>(350cc)</samp>cli: DefaultNow is deprecated in schema for Drizzle with SQLite - by @himself65 in https://github.com/better-auth/better-auth/issues/4889 (831dd)
Set-Cookie header - by @frectonz in https://github.com/better-auth/better-auth/issues/4388 <samp>(5de83)</samp>sso: Provide default service provider metadata - by @dvanmali in https://github.com/better-auth/better-auth/issues/4866 (e892a)
db: Delete hooks - by @Kinfe123 and @himself65 in https://github.com/better-auth/better-auth/issues/4792 (eb76a)
Add returnHeaders to getSession - by @frectonz in https://github.com/better-auth/better-auth/issues/3983 (19d4b)
returnHeaders to getSession - by @frectonz in https://github.com/better-auth/better-auth/issues/3983 <samp>(19d4b)</samp>Math.floor around the division when calculating TTL - by @DevDuki, Dusan Misic, ping-maxwell and @himself65 in https://github.com/better-auth/better-auth/issues/4768 <samp>(14b9e)</samp>ctx to DB hooks - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4769 <samp>(76d2a)</samp>beforeCreateOrganization - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4765 <samp>(c448a)</samp>email from query - by @himself65 in https://github.com/better-auth/better-auth/issues/4740 <samp>(481cb)</samp>Add search functionality to mobile navigation - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/4487 (ab7d2)
generateOTP - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4723 <samp>(8ac4f)</samp>autoCreateOnSignUp option as it's not implemented yet - by @Bekacru in https://github.com/better-auth/better-auth/issues/4755 <samp>(bc325)</samp>Type annotation issue - by @himself65 in https://github.com/better-auth/better-auth/issues/5651 (3cc96)
Urls without protocol shouldn't be able to satisfy a wildcard origin - by @Bekacru in https://github.com/better-auth/better-auth/issues/5624 (8579e)
Nothing published for this version
expo: Origin check failing due to null origin in expo - by @Bekacru in https://github.com/better-auth/better-auth/issues/5545 (35f7e)
Remove async local storage export - by @himself65 (c66bd)
Enhance PostgreSQL support for non-public schema by respecting search_path configuration - by @okisdev in https://github.com/better-auth/better-auth/i
search_path configuration - by @okisdev in https://github.com/better-auth/better-auth/issues/5449 <samp>(cb15e)</samp>Argument where of type TwoFactorWhereUniqueInput needs at least one of id arguments - by @AlexStrNik in https://github.com/better-auth/better-auth/iss
where of type TwoFactorWhereUniqueInput needs at least one of id arguments - by @AlexStrNik in https://github.com/better-auth/better-auth/issues/5180 <samp>(6682b)</samp>useSession - by @ThibautCuchet in https://github.com/better-auth/better-auth/issues/5166 <samp>(94316)</samp>$sessionSignal - by @himself65 in https://github.com/better-auth/better-auth/issues/5393 <samp>(cbd38)</samp>throw: true - by @ping-maxwell and @Bekacru in https://github.com/better-auth/better-auth/issues/5079 <samp>(bbd3d)</samp>Deprecate options.advanced.generateId type - by @himself65 (4e057)
options.advanced.generateId type - by @himself65 <samp>(4e057)</samp>sso plugin export - by @Bekacru in https://github.com/better-auth/better-auth/issues/5138 <samp>(2da12)</samp>[security] api keys should properly check if a request is from client or server - by @Bekacru (55608)
Additional fields on account - by @dvanmali in https://github.com/better-auth/better-auth/issues/4935 (f148f)
cli - by @Kinfe123 and @himself65 in https://github.com/better-auth/better-auth/issues/4872 <samp>(e1082)</samp>requestPasswordReset - by @Eazash in https://github.com/better-auth/better-auth/issues/5014 <samp>(d6224)</samp>null - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/5036 <samp>(84e99)</samp>getCustomerCreateParams not actually being called - by @ebalo55 and @himself65 in https://github.com/better-auth/better-auth/issues/5019 <samp>(cdd6f)</samp>Add support for custom callback for authorization url - by @Bekacru in https://github.com/better-auth/better-auth/issues/4919 (458cb)
onDelete is ignored - by @himself65 in https://github.com/better-auth/better-auth/issues/4973 <samp>(aba9a)</samp>Auth - by @himself65 in https://github.com/better-auth/better-auth/issues/4930 <samp>(574b9)</samp>Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
getSession shouldn't expose options and path types - by @Bekacru in https://github.com/better-auth/better-auth/issues/4947 (633a7)
getSession shouldn't expose options and path types - by @Bekacru in https://github.com/better-auth/better-auth/issues/4947 <samp>(633a7)</samp>cli: DefaultNow is deprecated in schema for Drizzle with SQLite - by @himself65 in https://github.com/better-auth/better-auth/issues/4889 (e979f)
Set-Cookie header - by @frectonz in https://github.com/better-auth/better-auth/issues/4388 <samp>(15b00)</samp>sso: Provide default service provider metadata - by @dvanmali in https://github.com/better-auth/better-auth/issues/4866 (4a9d1)
*No significant changes* ##### View changes on GitHub
No significant changes
types: Include null in getSession return type - by @jcajuab in https://github.com/better-auth/better-auth/issues/4812 (d447c)
passkey: Allow multiple passkey origins - by @kevcube in https://github.com/better-auth/better-auth/issues/4800 (d9601)
Math.floor around the division when calculating TTL - by @DevDuki, Dusan Misic, ping-maxwell and @himself65 in https://github.com/better-auth/better-auth/issues/4768 <samp>(08da9)</samp>ctx to DB hooks - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4769 <samp>(39c21)</samp>beforeCreateOrganization - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4765 <samp>(25a43)</samp>Add returnHeaders to getSession - by @frectonz in https://github.com/better-auth/better-auth/issues/3983 (8a4b3)
returnHeaders to getSession - by @frectonz in https://github.com/better-auth/better-auth/issues/3983 <samp>(8a4b3)</samp>autoCreateOnSignUp option as it's not implemented yet - by @Bekacru in https://github.com/better-auth/better-auth/issues/4755 <samp>(21bd4)</samp>email from query - by @himself65 in https://github.com/better-auth/better-auth/issues/4740 <samp>(8709a)</samp>discord: Allow specification of permissions - by @TheUntraceable and @Bekacru in https://github.com/better-auth/better-auth/issues/4717 (c6e33)
generateOTP - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4723 <samp>(11dbf)</samp>Flip emailVerified when link the account - by @himself65 in https://github.com/better-auth/better-auth/issues/4621 (cf2ca)
errorCallbackURL in failed oauth flows - by @frectonz in https://github.com/better-auth/better-auth/issues/4650 <samp>(43545)</samp>init - by @LightTab2 and @himself65 in https://github.com/better-auth/better-auth/issues/4680 <samp>(9d216)</samp>Device authorization plugin - by @bytaesu in https://github.com/better-auth/better-auth/issues/4695 (b9cbd)
Flip emailVerified when link the account - by @himself65 in https://github.com/better-auth/better-auth/issues/4621 (cf2ca)
onMount - by @frectonz in https://github.com/better-auth/better-auth/issues/4669 <samp>(9d6e4)</samp>errorCallbackURL in failed oauth flows - by @frectonz in https://github.com/better-auth/better-auth/issues/4650 <samp>(43545)</samp>init - by @LightTab2 and @himself65 in https://github.com/better-auth/better-auth/issues/4680 <samp>(9d216)</samp>Maintenance update: We fixed lots of issues from the community. Thanks to everyone for contributing to better-auth.
Maintenance update: We fixed lots of issues from the community. Thanks to everyone for contributing to better-auth.
refreshTokenExpiresAt - by @himself65 in https://github.com/better-auth/better-auth/issues/4569 <samp>(cc007)</samp>dontRememberMe mode - by @frectonz in https://github.com/better-auth/better-auth/issues/4558 <samp>(acb28)</samp>method - by @himself65 in https://github.com/better-auth/better-auth/issues/4595 <samp>(60930)</samp>unknown by default - by @himself65 in https://github.com/better-auth/better-auth/issues/4596 <samp>(78250)</samp>global.crypto - by @himself65 in https://github.com/better-auth/better-auth/issues/4606 <samp>(ef450)</samp>onMount - by @frectonz in https://github.com/better-auth/better-auth/issues/4669 <samp>(9d6e4)</samp>info shows the correct version - by @himself65 in https://github.com/better-auth/better-auth/issues/4547 <samp>(7faae)</samp>window.crypto is undefined - by @himself65 in https://github.com/better-auth/better-auth/issues/4620 <samp>(7dbc5)</samp>checkRolePermission shouldn't be a promise - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4533 <samp>(abfc4)</samp>client_secrect from authorizationUrl - by @arslan2012 in https://github.com/better-auth/better-auth/issues/4511 <samp>(71aeb)</samp>*No significant changes* ##### View changes on GitHub
No significant changes
organization: Restrict role check by user id - by @himself65 in https://github.com/better-auth/better-auth/issues/4641 (f5fd8)
Correct MongoDB adapter import path in CLI - by @aajeeth-m in https://github.com/better-auth/better-auth/issues/4602 (58963)
Remove use of global.crypto - by @himself65 in https://github.com/better-auth/better-auth/issues/4606 (ef450)
global.crypto - by @himself65 in https://github.com/better-auth/better-auth/issues/4606 <samp>(ef450)</samp>window.crypto is undefined - by @himself65 in https://github.com/better-auth/better-auth/issues/4620 <samp>(7dbc5)</samp>Support cross-domain cookie " - by @himself65 in https://github.com/better-auth/better-auth/issues/4482 (22b78)
partitioned). Even when cookies are set, they are not accessible to the server in SSR contexts.partitioned is Chrome-only
The Partitioned flag works in some Chrome versions but is unsupported in other browsers, leading to inconsistent behavior.render.com sets a cookie for vercel.app, the Next.js server on vercel.app cannot read it. This causes SSR to fail, making the approach unsuitable for fullstack apps (works only for pure SPAs).logger: Option to disable colors - by @martiinii and @himself65 in https://github.com/better-auth/better-auth/issues/4402 (53076)
refreshTokenExpiresAt - by @himself65 in https://github.com/better-auth/better-auth/issues/4569 <samp>(cc007)</samp>dontRememberMe mode - by @frectonz in https://github.com/better-auth/better-auth/issues/4558 <samp>(acb28)</samp>method - by @himself65 in https://github.com/better-auth/better-auth/issues/4595 <samp>(60930)</samp>unknown by default - by @himself65 in https://github.com/better-auth/better-auth/issues/4596 <samp>(78250)</samp>Add search functionality to mobile navigation - by @Kinfe123 in https://github.com/better-auth/better-auth/issues/4487 (7d6d4)
info shows the correct version - by @himself65 in https://github.com/better-auth/better-auth/issues/4547 <samp>(7faae)</samp>checkRolePermission shouldn't be a promise - by @ping-maxwell in https://github.com/better-auth/better-auth/issues/4533 <samp>(abfc4)</samp>base64.encode - by @himself65 in https://github.com/better-auth/better-auth/issues/4527 <samp>(4ebc6)</samp>client_secrect from authorizationUrl - by @arslan2012 in https://github.com/better-auth/better-auth/issues/4511 <samp>(71aeb)</samp>Add support for not in operator - by @Bekacru in https://github.com/better-auth/better-auth/issues/4449 (1651f)
node:sqlite - by @himself65 in https://github.com/better-auth/better-auth/issues/4415 <samp>(14ad4)</samp>iat for /token endpoint - by @dvanmali in https://github.com/better-auth/better-auth/issues/4501 <samp>(8f80a)</samp>/api/auth from wwwAuthenticateValue and properly format the header - by @paoloricciuti in https://github.com/better-auth/better-auth/issues/4462 <samp>(4b364)</samp>base64.encode - by @himself65 in https://github.com/better-auth/better-auth/issues/4527 <samp>(4ebc6)</samp>client_key - by @Manokii in https://github.com/better-auth/better-auth/issues/4437 <samp>(d8145)</samp>*No significant changes* ##### View changes on GitHub
No significant changes
Lynx integration - by @himself65 in https://github.com/better-auth/better-auth/issues/4470 (9589c)
iat for /token endpoint - by @dvanmali in https://github.com/better-auth/better-auth/issues/4501 <samp>(8f80a)</samp>/api/auth from wwwAuthenticateValue and properly format the header - by @paoloricciuti in https://github.com/better-auth/better-auth/issues/4462 <samp>(4b364)</samp>Add support for not in operator - by @Bekacru in https://github.com/better-auth/better-auth/issues/4449 (1651f)
client_key - by @Manokii in https://github.com/better-auth/better-auth/issues/4437 <samp>(d8145)</samp>Cloudflare build warning with node:sqlite - by @himself65 in https://github.com/better-auth/better-auth/issues/4415 (14ad4)
node:sqlite - by @himself65 in https://github.com/better-auth/better-auth/issues/4415 <samp>(14ad4)</samp>Support to infer error types from endpoint - by @himself65 in https://github.com/better-auth/better-auth/issues/4095 (48f91)
node:sqlite - by @himself65 in https://github.com/better-auth/better-auth/issues/3869 <samp>(fc8a2)</samp>onUpdate field on db schema generation - by @himself65 in https://github.com/better-auth/better-auth/issues/4241 <samp>(240ef)</samp>@default and @updatedAt for prisma generator - by @himself65 in https://github.com/better-auth/better-auth/issues/4375 <samp>(c84b3)</samp>defaultNow() for drizzle timestamp fields - by @Badbird5907 and @himself65 in https://github.com/better-auth/better-auth/issues/3873 <samp>(9fb9b)</samp>/admin/update-user role as array - by @alliefitter in https://github.com/better-auth/better-auth/issues/4371 <samp>(6c00b)</samp>info script - by @himself65 in https://github.com/better-auth/better-auth/issues/4143 <samp>(79311)</samp>x-api-key for all auth endpoint - by @himself65 in https://github.com/better-auth/better-auth/issues/4083 <samp>(a686a)</samp>onUpdate not working - by @himself65 in https://github.com/better-auth/better-auth/issues/4273 <samp>(87a16)</samp>string - by **efcf5787** [<samp>( stri)</samp>](https://github.com/better-auth/better-auth/commit/ string[] (#4219))generate throws error with default export - by @himself65 in https://github.com/better-auth/better-auth/issues/4113 <samp>(bb634)</samp>ID - by @himself65 in https://github.com/better-auth/better-auth/issues/4400 <samp>(a6ba8)</samp>Check endpoint conflits - by @himself65 in https://github.com/better-auth/better-auth/issues/4288 (b4f0c)
@default and @updatedAt for prisma generator - by @himself65 in https://github.com/better-auth/better-auth/issues/4375 <samp>(c84b3)</samp>defaultNow() for drizzle timestamp fields - by @Badbird5907 and @himself65 in https://github.com/better-auth/better-auth/issues/3873 <samp>(9fb9b)</samp>/admin/update-user role as array - by @alliefitter in https://github.com/better-auth/better-auth/issues/4371 <samp>(6c00b)</samp>Add last login method plugin - by @Bekacru in https://github.com/better-auth/better-auth/issues/4347 (2db14)
org: Dynamic Access Control - by @ping-maxwell and @himself65 in https://github.com/better-auth/better-auth/issues/4087 (11bb6)
organization: Organization life cycle hooks - by @Bekacru and @ping-maxwell in https://github.com/better-auth/better-auth/issues/4049 (bba0a)
Add query parameter to useSession().refetch() for cache control consistency - by @adriandlam and @himself65 in https://github.com/better-auth/better-a
stripe: PeerDependencies - by @himself65 in https://github.com/better-auth/better-auth/issues/4287 (d4343)
Add figma provider - by @ShobhitPatra and @Kinfe123 in https://github.com/better-auth/better-auth/issues/4134 (d476f)
onUpdate field on db schema generation - by @himself65 in https://github.com/better-auth/better-auth/issues/4241 <samp>(240ef)</samp>info script - by @himself65 in https://github.com/better-auth/better-auth/issues/4143 <samp>(79311)</samp>onUpdate not working - by @himself65 in https://github.com/better-auth/better-auth/issues/4273 <samp>(87a16)</samp>string - by **efcf5787** [<samp>( stri)</samp>](https://github.com/better-auth/better-auth/commit/ string[] (#4219))Add figma provider - by @ShobhitPatra and @Kinfe123 in https://github.com/better-auth/better-auth/issues/4134 (d476f)
onUpdate field on db schema generation - by @himself65 in https://github.com/better-auth/better-auth/issues/4241 <samp>(240ef)</samp>string - by **efcf5787** [<samp>( stri)</samp>](https://github.com/better-auth/better-auth/commit/ string[] (#4219))Support device authorization - by @himself65 in https://github.com/better-auth/better-auth/issues/3811 (5ded0)
Support to infer error types from endpoint - by @himself65 in https://github.com/better-auth/better-auth/issues/4095 (48f91)
node:sqlite - by @himself65 in https://github.com/better-auth/better-auth/issues/3869 <samp>(fc8a2)</samp>x-api-key for all auth endpoint - by @himself65 in https://github.com/better-auth/better-auth/issues/4083 <samp>(a686a)</samp>generate throws error with default export - by @himself65 in https://github.com/better-auth/better-auth/issues/4113 <samp>(bb634)</samp>One column per month.