Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.5.6

22 Mar 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

11 new13 fixed2 internal

Security

13 advisories affect 1.5.6; 1.7.7 fixes them

8 more

Release note

Features

  • Agent auth plugin

  • core: Add experimental opentelemetry instrumentation

  • email-otp: Add resendStrategy option to reuse existing OTP

  • magic-link: Add request metadata to sendMagicLink

  • mongo-adapter: Store UUIDs as native BSON UUID

  • oauth-provider: Public client prelogin endpoint

  • organization: Explicit organizationId in team endpoints

  • social-provider: Add wechat social provider

  • stripe: Allow customizable prorationBehavior per plan

  • test-utils: Export adapter test suites from @better-auth/test-utils/adapter

  • two-factor: Add twoFactorPage in config

Bug Fixes

  • Handle skipOriginCheck array

  • Prevent revoked sessions from being restored via database fallback

  • api: Return Response for HTTP request contexts

  • client: Handle throw:true in session refresh

  • core: Prioritize generateId "uuid" over adapter customIdGenerator

  • electron: Handle safeStorage encryption failures gracefully

  • oauth-provider: Support prompt=none

  • oauth-provider: Improve allowed paths for oauth_query for client plugin

  • oauth-provider: Fix dist declaration type errors

  • organization: Filter null organizations in listUserInvitations

  • sso: Use namespace import for samlify to fix ESM compatibility

  • stripe: Replace {CHECKOUT_SESSION_ID} placeholder in success callbackURL

  • stripe: Improve organization customer search by adding customerType check

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.