Better Auth v1.7.21
This release fixes issues across OAuth, SSO, database adapters, SCIM, and Cloudflare Workers, including token refresh behavior, SAML replay protection, and intermittent startup failures. It also changes Prisma `update` to affect only one matching row and requires native adapter transactions for SCIM provisioning; MongoDB index build failures now require correcting the underlying cause before restarting.
Applications using SCIM with adapters lacking native transactions, MongoDB index creation, or Prisma updates on non-unique filters are directly affected; OAuth, SSO, and Cloudflare Workers users also receive relevant fixes.
Review the listed SCIM, MongoDB index, and Prisma update action items before upgrading.
- 01For SCIM user and group provisioning, switch to an adapter with native transactions; adapters without them return 501 for `/scim/v2` requests.
- 02If relying on `update` to change every row matching a non-unique filter, use `updateMany` instead.
- 03If a MongoDB index build fails due to duplicate values, missing `createIndex` permission, or a conflicting index on the same field, fix the cause and restart.
# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.