Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.19

23 Feb 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

10 new34 fixed1 internal

Security

12 advisories affect 1.4.19; 1.7.7 fixes them

7 more

Release note

Features

  • adapter: Improve select support

  • oauth-provider: Add iss parameter to authorization responses (RFC 9207)

  • oauth-provider: Add configurable rate limiting for OAuth endpoints

  • oauth-provider: Enforce HTTPS for redirect URIs

  • phone-number: Support user additionalFields in signUpOnVerification flow

Bug Fixes

  • Skip sending email verification to already verified users without a session

  • Improve Headers detection with instanceof check and cross-realm fallback

  • Safely coerce date values from DB in OAuth provider plugin

  • Correct error redirect URL construction

  • Encode callbackURL in delete-user verification email

  • Add error handling for id token verification in Apple and Google providers

  • access: Allow passing statements directly into newRole

  • adapter: Use getCurrentAdapter for user lookup to avoid transaction deadlock

  • admin: Change list type from never to UserWithRole

  • admin: Apply listUsers filter when filterValue is defined

  • admin: Optional chain user in hooks

  • api-key: Error details not passed to response

  • cli: Add .env.local to dotenv

  • cookie: Relax cookie retrieval for getSessionCookie

  • custom-session: Use getSetCookie() to preserve individual Set-Cookie headers

  • db: Infer default value for required attr properly

  • expo: Construct the new Request to avoid immutable headers error on Cloudflare Workers

  • expo: Avoid a leading “; ” when constructing the first cookie

  • expo: Support wildcard trusted origins in deep link cookie injection

  • generic-oauth: Emit duplicate id warning

  • microsoft: Add verifyIdToken support for Microsoft Entra ID provider

  • oauth: Support case-insensitive email matching for social account linking

  • oauth-provider: Return url instead of uri in continue and consent endpoints

  • oauth-provider: Add missing oauthClient createdAt/updatedAt values

  • oauth-provider: Return "invalid_client" on encrypted secret verification failure

  • organization: Prevent deletion of roles assigned to members

  • organization: Remove unreachable null check in acceptInvitation

  • passkey: Compute expirationTime per-request instead of at init

  • passkey: Use deleteVerificationByIdentifier for secondary-storage cleanup

  • sso: Add better-call peerDeps

  • sso: Allow custom organization roles in provisioning types

  • sso: Resolve TXT record at verification subdomain instead of root domain

  • sso: Correct IdentityProvider configuration in signInSSO

  • sso: Fix broken relay state redirect on SAML ACS route

  • sso: Validate aud claim in OpenID Connect ID tokens

  • sso: Harden SAML ACS error redirects and add regression test for #7777

  • stripe: Restore better-call peerDeps

  • stripe: Use correct stripeCustomerId on /subscription/cancel/callback endpoint

  • stripe: Clarify error when authorizeReference is missing

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.