v1.6.2
better-auth
❗ Breaking Changes
- Prevented unverified TOTP enrollment from blocking sign-in (#8711)
Migration: Schema migration required.
Add the
verifiedcolumn to thetwoFactortable, then regenerate/apply your ORM migration.
- Prisma: run
npx auth@latest generate, thennpx prisma migrate dev(ornpx prisma db push) andnpx prisma generate.- Drizzle: run
npx auth@latest generate, thennpx drizzle-kit generateandnpx 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 (#8772)
Bug Fixes
- Fixed OAuth state verification against cookie-stored nonce to prevent CSRF (#8949)
- Fixed infinite router refresh loops in
nextCookies()by replacing cookie probe with header-based RSC detection (#9059) - Fixed cross-provider account collision in link-social callback (#8983)
- Included
RelayStatein signed SAML AuthnRequests (#9058)
For detailed changes, see CHANGELOG
@better-auth/oauth-provider
Bug Fixes
- Fixed multi-valued query params collapsing through prompt redirects (#9060)
- Rejected
skip_consentat schema level in dynamic client registration (#8998)
For detailed changes, see CHANGELOG
@better-auth/sso
Bug Fixes
- Fixed SAMLResponse decoding failures caused by line-wrapped base64 (#8968)
For detailed changes, see CHANGELOG
Contributors
Thanks to everyone who contributed to this release:
@aarmful, @cyphercodes, @dvanmali, @gustavovalverde, @jaydeep-pipaliya, @ping-maxwell
Full changelog: v1.6.1...v1.6.2
Fetched May 1, 2026
