Important
Action required
- If you use sessions from
enableSessionForAPIKeysto generate two-factor backup codes, those requests are now refused.
better-auth
❗ Breaking Changes
- Changed two-factor backup code generation to require a session still active in the store when a server-side session store is used, even with cookie caching
Bug Fixes
- Fixed phone number sign-in for unverified numbers to fail with
FAILED_TO_CREATE_VERIFICATIONwhen averification.create.beforehook keeps the credential proof from being stored - Fixed the ID token nonce endpoint to fail with
FAILED_TO_CREATE_VERIFICATIONwhen averification.create.beforehook keeps the nonce from being stored
For detailed changes, see CHANGELOG
@better-auth/oauth-provider
Bug Fixes
- Fixed pushed authorization requests to fail with
server_errorwhen averification.create.beforehook keeps them from being stored, instead of returning an unusablerequest_uri - Fixed device code approval on the consent page failing with a server error on databases that reject
nullin list columns, such as Prisma with PostgreSQL or MongoDB - Fixed OAuth provider token revocations to fail with
server_errorwhen averification.create.beforehook keeps them from being recorded (#12976) - Fixed token requests that race with grant revocation returning HTTP 500 instead of
invalid_grantwhen a retry clears a database deadlock (#12867) - Fixed ID tokens to omit the
amrclaim instead of sending an empty list when no authentication methods are recorded
For detailed changes, see CHANGELOG
@better-auth/ciba
Bug Fixes
- Fixed CIBA requests and approvals failing with a server error on databases that reject
nullin list columns, such as Prisma on PostgreSQL, CockroachDB, and MongoDB (#12950)
For detailed changes, see CHANGELOG
Contributors
Thanks to everyone who contributed to this release:
Full changelog: v1.8.0-beta.11...v1.8.0-beta.12