Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.6

9 Dec 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

1 breaking8 new22 fixed2 internal

  • Breaking

    admin: Prevent impersonating admins by default

Security

13 advisories affect 1.4.6; 1.7.7 fixes them

8 more

Release note

Features

  • Add ctx.isTrustedDomain helper

  • Drizzle pg supports JSON

  • Add Refresh Token Support to Kick OAuth Provider

  • Breaking

    admin: Prevent impersonating admins by default

  • expo: Last-login-method client plugin

  • multi-session: Allow to infer additional fields

  • organization: Allow invited users to see organization name

  • sso: Use domain verified flag to trust providers automatically

Bug Fixes

  • Avoid throwing on client side

  • Export organization plugin types

  • Prematurely deleting active sessions in secondary storage

  • Pathname should be normalized when basePath is set to root

  • Make sure non-chunked session data cookie is cleared

  • Array field handling across adapters and schema generation

  • StoreStateStrategy default to database if provided

  • Should always remove 2FA verification token after successful verification

  • adapter: Add logger creation in adapter factory

  • adapter: Allow run internal adapter outside context

  • admin: Clear admin session cookie on stopImpersonating

  • cli: secret generates empty

  • cli: Deduplicate drizzle schema relationships

  • core: Allow returning null in getUserInfo in provider options

  • db: Correctly unwrap validator result in schema parsing

  • kysely: Wrong affected row count in updateMany & deleteMany

  • magic-link: Handle query params in errorCallbackUrl

  • oidc: Compatibility with exact-optional-property

  • openapi: Mark /get-session response as nullable

  • prisma: Use findFirst instead of findMany for findOne

  • saml: Enforce trusted provider check

  • sso: Safely parse provider configs on registration

  • username: Await username validator

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.