Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.24

22 Jul 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

2 new14 fixed1 internal

Security

4 advisories affect 1.6.24; 1.7.7 fixes them

Release note

The section about better-auth of a note shared by several packages.

better-auth

Features

  • Added request context (ctx) as a third argument to verifyIdToken, enabling custom ID token verifiers to read request headers

  • Added beforeStoreCookie option to the last-login-method plugin for GDPR compliance

Bug Fixes

  • Fixed the get-session endpoint to include no-store cache control headers, preventing stale session data from being served

  • Fixed SQLite migration diffs to recognize BIGINT as a valid number type, preventing spurious pending changes on rate limiter columns

  • Fixed auth requests failing when request cloning throws an error inside verification callbacks

  • Fixed useSession({ throw: true }) incorrectly excluding null from its data type

  • Fixed auth query revalidation and signal listeners not being restored after a client component remounts

  • Fixed the CookieAttributes index signature type to be more precise

  • Fixed silent misrouting of adapter queries when user.modelName was set to a value that collides with another schema key

  • Fixed Kysely migration generation producing duplicate indexes for fields marked both unique and index

  • Fixed magic-link and email-OTP send endpoints to validate the Origin header on cookieless requests, preventing cross-origin abuse

  • Fixed remote MCP auth 401 challenge headers being hidden from browser clients due to missing CORS exposure

  • Fixed OpenAPI schema to include plugin user fields (such as username and displayUsername) in /sign-up/email and /update-user request bodies

  • Fixed organization.listMembers failing with "User not found for member" for organizations with more than ~100 members

  • Fixed organization invitations to use database-generated IDs when advanced.database.generateId is configured, matching the behavior of other models

  • Fixed getDefaultModelName to prefer exact schema key matches over modelName aliases, preventing adapter queries from being misrouted when a built-in table's name collides with another schema key

For detailed changes, see CHANGELOG

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.