v1.7.16
Fixed 20
- Revoked sessions no longer remain usable with secondary storage or the cookie cache; bulk revocation now ends sessions missing from the cached list, and passkey registration, device authorization, two-factor, social account linking, and phone number changes check the session store
- Phone numbers are no longer stored before verification; sign-up and sign-in reject a phoneNumber in the request, social profiles no longer set an unverified number, and verification codes use their own namespace behavior changed · inferred, marked in the notes below
- /admin/update-user no longer changes phone numbers without permission; it now requires the user:set-phone permission, so set-phone must be added to custom access control statements behavior changed · inferred, marked in the notes below
- Email OTP no longer accepts more guesses than allowedAttempts under concurrent requests, and email change codes are bound to the requesting account
- User lookup by email no longer matches a different address on accent-insensitive database collations
- Email verification and change email links no longer work for an account other than the one they were issued to
- OAuth sign-in no longer treats a string email_verified value such as "false" as verified, and generic OAuth profiles are bound to the ID token subject
- Organization roles with extra whitespace no longer pass role checks, and pending invitations are limited to members who can manage them
- Wildcard trusted origins no longer match URLs outside the intended scheme, host, or path
- Anonymous users are no longer linked on a sign-in still waiting for a second factor
- The Zoom provider now respects disableSignUp, requireEmailVerification, and overrideUserInfoOnSignIn
- String email_verified claims from Cognito and Microsoft Entra ID are no longer read as verified
- The Expo authorization proxy no longer signs a state the server did not issue or redirects to hosts that are not configured providers
- Electron sign-in no longer returns the internal auth context when the transfer cookie is not a transfer request, and desktop authorization codes are bound to the browser session that issued them
- The passkey expected WebAuthn origin now comes from server configuration rather than the request; set origin when rpID is set and a wildcard in baseURL.allowedHosts covers it behavior changed · inferred, marked in the notes below
- userVerification set to required is now enforced for both passkey registration and authentication behavior changed · inferred, marked in the notes below
- Sign-up and update-user requests no longer set stripeCustomerId; server code setting it through auth.api.updateUser must write it through the database adapter instead behavior changed · inferred, marked in the notes below
- Stripe webhooks no longer attribute a subscription to the wrong record when several records share a Stripe customer ID
- MySQL with generateId set to serial no longer returns another request's record on connection pools in the Kysely adapter
- MySQL with generateId set to serial no longer returns another request's record on connection pools in the Drizzle adapter
5 changes to check, marked in the notes below
From Better Auth
better-auth
Bug Fixes
- Fixed revoked sessions staying usable with secondary storage or the cookie cache. Bulk revocation now ends sessions missing from the cached list, and passkey registration, device authorization, two-factor, social account linking, and phone number changes check the session store (#12198)
- Fixed phone numbers being stored before they are verified. Sign-up and sign-in reject a
phoneNumberin the request, social profiles no longer set an unverified number, and verification codes use their own namespace (#12198) behavior changed · inferred - Fixed
/admin/update-userchanging phone numbers without permission. It now requiresuser:set-phone, so addset-phoneto custom access control statements (#12198) behavior changed · inferred - Fixed email OTP accepting more guesses than
allowedAttemptsunder concurrent requests, and bound email change codes to the requesting account (#12198) - Fixed user lookup by email matching a different address on accent-insensitive database collations (#12198)
- Fixed email verification and change email links working for an account other than the one they were issued to (#12198)
- Fixed OAuth sign-in treating a string
email_verifiedvalue such as"false"as verified, and bound generic OAuth profiles to the ID token subject (#12198) - Fixed organization roles with extra whitespace passing role checks, and limited pending invitations to members who can manage them (#12198)
- Fixed wildcard trusted origins matching URLs outside the intended scheme, host, or path (#12198)
- Fixed anonymous users being linked on a sign-in still waiting for a second factor (#12198)
For detailed changes, see CHANGELOG
@better-auth/core
Bug Fixes
- Fixed the Zoom provider ignoring
disableSignUp,requireEmailVerification, andoverrideUserInfoOnSignIn(#12198) - Fixed string
email_verifiedclaims from Cognito and Microsoft Entra ID being read as verified (#12198)
For detailed changes, see CHANGELOG
@better-auth/expo
Bug Fixes
- Fixed the authorization proxy signing a state the server did not issue and redirecting to hosts that are not configured providers (#12198)
For detailed changes, see CHANGELOG
@better-auth/electron
Bug Fixes
- Fixed sign-in returning the internal auth context when the transfer cookie is not a transfer request, and bound desktop authorization codes to the browser session that issued them (#12198)
For detailed changes, see CHANGELOG
@better-auth/passkey
Bug Fixes
- Fixed the expected WebAuthn origin coming from the request instead of server configuration. Set
originwhenrpIDis set and a wildcard inbaseURL.allowedHostscovers it (#12198) behavior changed · inferred - Fixed
userVerification: "required"not being enforced, and applied it to authentication as well as registration (#12198) behavior changed · inferred
For detailed changes, see CHANGELOG
@better-auth/stripe
Bug Fixes
- Fixed sign-up and update-user requests setting
stripeCustomerId. Server code that sets it throughauth.api.updateUsermust write it through the database adapter instead (#12198) behavior changed · inferred - Fixed webhooks attributing a subscription to the wrong record when several records share a Stripe customer ID (#12198)
For detailed changes, see CHANGELOG
@better-auth/kysely-adapter
Bug Fixes
- Fixed MySQL with
generateId: "serial"returning another request's record on connection pools (#12198)
For detailed changes, see CHANGELOG
@better-auth/drizzle-adapter
Bug Fixes
- Fixed MySQL with
generateId: "serial"returning another request's record on connection pools (#12198)
For detailed changes, see CHANGELOG
Contributors
Thanks to everyone who contributed to this release:
@bytaesu @Bekacru @gustavovalverde @Abhishek-B-R
Full changelog: v1.7.15...v1.7.16