better-auth
Bug Fixes
- Exposed
refreshUserSessionson the internal adapter (#7764) - Fixed organization invitation roles to accept dynamic access control roles (#9437)
- Improved link accessibility (#9521)
- Fixed incorrect email casing in one-tap, email-otp, and email-verification flows (#9369)
- Fixed OpenAPI schema for
POST /sign-in/socialmis-declaring required fields (#9268) - Added a warning when the cookie plugin is placed last in the plugins array (#9484)
- Fixed
useSessionnot revalidating after admin impersonation starts or stops (#9402) - Fixed duplicate
Set-Cookieheaders being emitted on redirect responses from social sign-in and magic-link endpoints (#9497) - Fixed the bearer plugin writing duplicate cookie entries when merging the session token into request headers (#9387)
- Fixed captcha plugin breaking the email-otp flow (#8339)
- Fixed email enumeration protection not applying when
emailAndPassword.autoSignInis false (#8839) - Fixed a
TypeErrorcaused by non-ASCII characters in OAuth error descriptions on redirect (#9065) - Renamed
internalAdapter.deleteAccountparameter fromaccountIdtoidto reflect that it queries by primary key (#9503) - Fixed OAuth callbacks accepting a missing provider account ID, which could link accounts under an
undefinedid (#9456) - Fixed
cancelPendingInvitationsOnReInvitehaving no effect, where re-inviting the same email always returnedUSER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION(#9453) - Fixed a TS2742 type error caused by missing re-exports when using
additionalFieldsin the organization plugin (#9349) - Fixed
useActiveMemberRoleretaining a previous user's role after sign-out in SPA flows (#9440) - Fixed
setActiveTeamto only accept teams from the currently active organization (#9239) - Added
authClient.siwe.getNonce()as a compatibility alias for the SIWE nonce endpoint (#9461) - Fixed
callbackURLbeing ignored onsignIn.username, so it now redirects correctly likesignIn.email(#9475)
For detailed changes, see CHANGELOG
@better-auth/oauth-provider
Bug Fixes
- Fixed
sessionIdtyping in refresh token types to be optional, matching the schema (#9324) - Fixed stale
prompt=loginconsent continuations not completing after a forced login - Exported OAuth provider helper types needed for portable downstream TypeScript declaration emit (#9406)
- Fixed
prompt=loginnot being honored after consent continuation, preventing session bypass (#9344) - Added database indexes to OAuth provider foreign-key fields in generated schemas (#9389)
For detailed changes, see CHANGELOG
@better-auth/stripe
Bug Fixes
- Fixed
onSubscriptionUpdateto receive the rawstripeSubscriptionobject, and fixedonSubscriptionCancelto receive the post-update subscription row instead of a stale snapshot (#9354) - Fixed
getCheckoutSessionParamsoverriding internally managed Stripe Checkout Session fields such assuccess_url,cancel_url,customer, andline_items(#9481) - Fixed
onSubscriptionDeleted,onTrialEnd, andonTrialExpiredreceiving a stale pre-update subscription snapshot instead of the post-update row (#9356) - Fixed
getCheckoutSessionParamsoverriding free trial and internal metadata, which could hide trial periods and create duplicate subscription rows on webhook (#9474) - Renamed internal subscription webhook variables for clarity (#9355)
For detailed changes, see CHANGELOG
@better-auth/api-key
Bug Fixes
- Fixed
api.verifyApiKeynot validating the key'sconfigIdagainst the request body (#9393)
For detailed changes, see CHANGELOG
@better-auth/core
Bug Fixes
- Fixed Cloudflare Workers instrumentation imports to use a no-op entry when OpenTelemetry is not installed (#9395)
For detailed changes, see CHANGELOG
@better-auth/passkey
Bug Fixes
- Fixed passkey autofill authentication to return a handled cancellation instead of an unhandled error when it cannot start (#9429)
For detailed changes, see CHANGELOG
@better-auth/sso
Bug Fixes
- Fixed
/sso/saml2/sp/metadatathrowingNOT_FOUNDfor providers configured viadefaultSSO(#9398)
For detailed changes, see CHANGELOG
auth
Bug Fixes
- Fixed
auth initgenerating broken MySQL and PostgreSQL Kysely database configs (#9455)
For detailed changes, see CHANGELOG
Contributors
Thanks to everyone who contributed to this release:
@bytaesu, @Craga89, @cyphercodes, @dipan-ck, @dvanmali, @GautamBytes, @gustavovalverde, @IcanDivideBy0, @jaydeep-pipaliya, @mausic, @onmax, @ping-maxwell, @programming-with-ia, @zllovesuki
Full changelog: v1.6.9...v1.6.10