better-auth
Features
- Added support for server-side
accountInfocalls with an optionaluserIdparameter, allowing trusted callers to read provider profiles without constructing session headers (#9813)
Bug Fixes
- Clarified that
viewBackupCodesis a server-only function not accessible via HTTP in its API documentation (#9822) - Fixed Google One Tap authenticating the wrong user when the presented Google account is already linked to a different local user, by resolving identity through the shared OAuth path
- Fixed
storeStateStrategydefaulting to"cookie"instead of"database"when onlysecondaryStorageis configured, preventing oversized-cookie errors on platforms like AWS Lambda (#9591) - Fixed
updateUserInfoOnLinknot being applied when linking accounts through the standard OAuth redirect flow (#8758) - Fixed
oidc-providerandmcpplugins accepting invalidredirect_urischemes such asjavascript:anddata:(#9838) - Fixed organization
logonot acceptingnull, preventing users from clearing an existing logo on create and update (#9842)
For detailed changes, see CHANGELOG
@better-auth/sso
Bug Fixes
- Fixed SAML Single Logout leaving the user signed in due to session deletion matching on row ID instead of session token
- Fixed ambiguous
internalAdapterhelper methods that could silently match the wrong account or wipe all sessions for a user (#9818) - Fixed a high-severity XML injection vulnerability in signed SAML assertions by updating
samlifyto 2.13.1 (GHSA-34r5-q4jw-r36m) (#9821)
For detailed changes, see CHANGELOG
@better-auth/api-key
Bug Fixes
- Fixed
verifyApiKeyrejecting keys created under a non-defaultconfigIdwhen the request omittedconfigId(#9794)
For detailed changes, see CHANGELOG
@better-auth/core
Bug Fixes
- Fixed a silent failure in
consumeOnewhen an adapter'sdeleteManyreturned a non-numeric value, now surfacing a clear error (#9831)
For detailed changes, see CHANGELOG
@better-auth/expo
Bug Fixes
- Fixed sign-in being lost on Expo when a provider issues large tokens, by splitting oversized account cookies across multiple storage keys (#9815)
For detailed changes, see CHANGELOG
@better-auth/oauth-provider
Bug Fixes
- Fixed
POST /oauth2/registerbypassing theclientPrivilegescreate check, allowing unauthorized dynamic client registration (#9837)
For detailed changes, see CHANGELOG
Contributors
Thanks to everyone who contributed to this release:
@bytaesu, @gustavovalverde, @Vishesh-Verma-07
Full changelog: v1.6.12...v1.6.13