npm better-auth 1.7.26
v1.7.26

28 minutes ago

Important

Action required

  • If you use a custom JWT plugin adapter.getJwks and reads are expensive, add caching inside your key store, since it is now called on every verification. (#12624)

better-auth

Features

  • Added a getAccountFields option 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 getAccountFields option 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::/3 as 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_challenge and code_verifier (#12315)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Features

  • Added an assertionClockTolerance option so private_key_jwt clients with slight clock drift no longer fail token exchange (#12720)

Bug Fixes

  • Added a 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)
  • Fixed the OAuth provider and requireMcpAuth to call a custom JWT plugin adapter.getJwks on every verification instead of caching its keys (#12624)
  • Fixed a custom JWT plugin adapter.getJwks to receive the request again when the OAuth provider reads signing keys and when requireMcpAuth verifies a token (#12624)
  • Fixed revoking another client's already revoked refresh token deleting the presenting client's own tokens (#12724)
  • Fixed /userinfo returning a 500 error when the profile scope is requested for a user with no name (#11201)
  • Fixed refreshed access and ID tokens carrying a sid for a session that has already ended (#12723)
  • Fixed OAuth token introspection and revocation returning a 500 error when a custom refresh token decrypt rejects an unrecognized value (#12725)

For detailed changes, see CHANGELOG

@better-auth/cimd

Bug Fixes

  • Fixed client ID metadata fetches failing for client_id URLs 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 requireMcpAuth to call a custom JWT plugin adapter.getJwks on every verification instead of caching its keys (#12624)
  • Fixed a custom JWT plugin 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

@better-auth/scim

Features

  • Added pagination to listSCIMManagedConnectionEvents with optional limit, offset, and sortDirection fields and a total count 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

Don't miss a new better-auth release

NewReleases is sending notifications on new releases.