npm better-auth 1.8.0-beta.12
v1.8.0-beta.12

one hour ago

Important

Action required

  • If you use sessions from enableSessionForAPIKeys to 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_VERIFICATION when a verification.create.before hook keeps the credential proof from being stored
  • Fixed the ID token nonce endpoint to fail with FAILED_TO_CREATE_VERIFICATION when a verification.create.before hook 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_error when a verification.create.before hook keeps them from being stored, instead of returning an unusable request_uri
  • Fixed device code approval on the consent page failing with a server error on databases that reject null in list columns, such as Prisma with PostgreSQL or MongoDB
  • Fixed OAuth provider token revocations to fail with server_error when a verification.create.before hook keeps them from being recorded (#12976)
  • Fixed token requests that race with grant revocation returning HTTP 500 instead of invalid_grant when a retry clears a database deadlock (#12867)
  • Fixed ID tokens to omit the amr claim 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 null in 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:

@gustavovalverde

Full changelog: v1.8.0-beta.11...v1.8.0-beta.12

Don't miss a new better-auth release

NewReleases is sending notifications on new releases.