better-auth
1.7.17 · 4 Nov 2026MIT18.2M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 1.x1.7.17Safe from 1.7.7Latest line
- 0.8.x and older0.8.8159 open advisories, worst critical · last release Nov 2024, no longer updatedTo 1.7.17
Latest releases
All 236 releases1.7.17
4 Nov 2026Fixed sessions created by a
session.delete.afterhook being treated as revoked during "revoke all sessions" when usingsecondaryStoragewithstoreSessionInDatabaseFixed remembered sign-ins and sign-ups to refresh their session even if an earlier sign-in in the same browser used
rememberMe: falseFixed denying a device authorization request to reject a revoked session that is still in the cookie cache
better-authBug Fixes
Fixed sessions created by a
session.delete.afterhook being treated as revoked during "revoke all sessions" when usingsecondaryStoragewithstoreSessionInDatabaseFixed remembered sign-ins and sign-ups to refresh their session even if an earlier sign-in in the same browser used
rememberMe: falseFixed denying a device authorization request to reject a revoked session that is still in the cookie cache
Fixed IP wildcard trusted origins such as
exp://192.168.*.*:*matching custom-scheme hosts with out-of-range or zero-padded octetsFixed the phone number plugin storing an empty
phoneNumberon sign-up and replacing a verified number when linking an account with an empty phone numberFixed TOTP verification rejecting API key sessions so they can now finish two-factor enrollment
Fixed trusted devices being ignored when an app runs the two-factor sign-in step from its own hook on another sign-in path, such as email OTP
For detailed changes, see
CHANGELOG1.7.16
3 Nov 2026Fixed 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
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 namespaceFixed
/admin/update-userchanging phone numbers without permission. It now requiresuser:set-phone, so addset-phoneto custom access control statements
better-authBug 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
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 namespaceFixed
/admin/update-userchanging phone numbers without permission. It now requiresuser:set-phone, so addset-phoneto custom access control statementsFixed email OTP accepting more guesses than
allowedAttemptsunder concurrent requests, and bound email change codes to the requesting accountFixed user lookup by email matching a different address on accent-insensitive database collations
Fixed email verification and change email links working for an account other than the one they were issued to
Fixed OAuth sign-in treating a string
email_verifiedvalue such as"false"as verified, and bound generic OAuth profiles to the ID token subjectFixed organization roles with extra whitespace passing role checks, and limited pending invitations to members who can manage them
Fixed wildcard trusted origins matching URLs outside the intended scheme, host, or path
Fixed anonymous users being linked on a sign-in still waiting for a second factor
For detailed changes, see
CHANGELOG1.7.15
1 Nov 2026- security
Fixed organization and API key metadata, and OAuth proxy sign-ins with a
constructorfield inadditionalData, failing with a prototype pollution error Improved
BETTER_AUTH_SECRETSerror messages to report the entry position instead of including the entry valueFixed the admin
update-userendpoint to rejectdata.idwith a 400 error instead of attempting to change the user's primary key
better-authBug Fixes
- security
Fixed organization and API key metadata, and OAuth proxy sign-ins with a
constructorfield inadditionalData, failing with a prototype pollution error Improved
BETTER_AUTH_SECRETSerror messages to report the entry position instead of including the entry valueFixed the admin
update-userendpoint to rejectdata.idwith a 400 error instead of attempting to change the user's primary keyFixed the admin plugin to reject banned users when a session is created outside an endpoint, such as through
internalAdapter.createSessionFixed headers and cookies set by a non-returning
hooks.beforehook being dropped from the response, with the endpoint's value winning when both set the same header or cookieFixed the Vue client's
useSession(useFetch)returning no session during Nuxt SSR whenbaseURLis inferred from the environmentFixed the
genericOAuthHubSpot helper truncating access tokens with reserved characters and now returningnullinstead of requesting/access-tokens/undefinedwhen no token is presentFixed
/sign-in/usernameand/is-username-availablerejecting usernames that sign-up accepts whenvalidationOrder.usernameispost-normalization
For detailed changes, see
CHANGELOG
Dependency tracking · free for 3 projects
Know when your own dependencies move
better-auth had 20 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 5 Nov 2026. Releases and advisories last read 5 Nov 2026.