Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.2

9 Apr 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

1 breaking1 security1 new3 fixed

  • Breaking

    Prevented unverified TOTP enrollment from blocking sign-in

Security

Fixes 1 advisory that affected 1.6.1

12 advisories affect 1.6.2; 1.7.7 fixes them

7 more

Release note

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

better-auth

Breaking Changes

  • Breaking

    Prevented unverified TOTP enrollment from blocking sign-in

Migration: Schema migration required.

Add the verified column to the twoFactor table, then regenerate/apply your ORM migration.

  • Prisma: run npx auth@latest generate, then npx prisma migrate dev (or npx prisma db push) and npx prisma generate.

  • Drizzle: run npx auth@latest generate, then npx drizzle-kit generate and npx drizzle-kit migrate.

Existing rows do not need a backfill because the column defaults to true.

Features

  • Included enabled 2FA methods in sign-in redirect response

Bug Fixes

  • Security

    Fixed OAuth state verification against cookie-stored nonce to prevent CSRF

  • Fixed infinite router refresh loops in nextCookies() by replacing cookie probe with header-based RSC detection

  • Fixed cross-provider account collision in link-social callback

  • Included RelayState in signed SAML AuthnRequests

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.