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)
better-auth
Features
- Added a
getAccountFieldsoption to social providers for storing custom values on the provider account at sign-in (#12734)
Bug Fixes
- Fixed expired verification values being returned to repeated lookups by deleting them when found (#12626)
- Fixed two-factor sign-in to reject an expired challenge before sending an OTP or counting a failed attempt (#12626)
For detailed changes, see CHANGELOG
@better-auth/core
Features
- Added a
getAccountFieldsoption to social providers for storing custom values on the provider account at sign-in (#12734) - Added ID token sign-in for Kakao, so ID tokens from Kakao's native SDKs can be passed to
signIn.social(#12316)
Bug Fixes
- Fixed DPoP proof replay reservations to last through the full accepted window, so a proof can no longer be reused in its final second (#12625)
- Fixed authorization URLs to keep empty segments in the authorization endpoint's query, such as a trailing or doubled
&(#12620) - Fixed the host classifier treating non-global IPv6 addresses outside
2000::/3as public, so they are now rejected as reserved (#12692) - Fixed outbound checks rejecting NAT64 addresses that embed a public IPv4 address, which broke SSO discovery and CIMD fetches on DNS64 networks (#12692)
- Fixed IPv6 addresses with a dotted IPv4 tail being misread as IPv4-mapped, so they are now rejected as reserved (#12692)
- Fixed Kakao sign-in to use PKCE by sending
code_challengeandcode_verifier(#12315)
For detailed changes, see CHANGELOG
@better-auth/oauth-provider
Features
- Added an
assertionClockToleranceoption soprivate_key_jwtclients with slight clock drift no longer fail token exchange (#12720)
Bug Fixes
- Added a
WWW-Authenticate: Basicchallenge to OAuth provider401 invalid_clientresponses for introspection and revocation requests without client credentials and forprivate_key_jwtassertions with invalid signatures (#12622) - Fixed the OAuth provider and
requireMcpAuthto call a custom JWT pluginadapter.getJwkson every verification instead of caching its keys (#12624) - Fixed a custom JWT plugin
adapter.getJwksto receive the request again when the OAuth provider reads signing keys and whenrequireMcpAuthverifies a token (#12624) - Fixed revoking another client's already revoked refresh token deleting the presenting client's own tokens (#12724)
- Fixed
/userinforeturning a 500 error when theprofilescope is requested for a user with no name (#11201) - Fixed refreshed access and ID tokens carrying a
sidfor a session that has already ended (#12723) - Fixed OAuth token introspection and revocation returning a 500 error when a custom refresh token
decryptrejects an unrecognized value (#12725)
For detailed changes, see CHANGELOG
@better-auth/cimd
Bug Fixes
- Fixed client ID metadata fetches failing for
client_idURLs whose host is a public IPv6 literal (#12694) - Fixed CIMD metadata fetches on Node failing when the first DNS answer is unreachable, such as hosts without outbound IPv6 (#12730)
For detailed changes, see CHANGELOG
@better-auth/mcp
Bug Fixes
- Fixed the OAuth provider and
requireMcpAuthto call a custom JWT pluginadapter.getJwkson every verification instead of caching its keys (#12624) - Fixed a custom JWT plugin
adapter.getJwksto receive the request again when the OAuth provider reads signing keys and whenrequireMcpAuthverifies a token (#12624)
For detailed changes, see CHANGELOG
@better-auth/scim
Features
- Added pagination to
listSCIMManagedConnectionEventswith optionallimit,offset, andsortDirectionfields and atotalcount in the response (#10793)
For detailed changes, see CHANGELOG
Contributors
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