mirror of
https://github.com/better-auth/better-auth.git
synced 2026-07-27 10:55:09 -05:00
413 B
413 B
better-auth
| better-auth |
|---|
| patch |
fix(two-factor): preserve backup codes storage format after verification
After using a backup code, remaining codes are now re-saved using the same storeBackupCodes strategy (plain, encrypted, or custom) configured by the user. Previously, codes were always re-encrypted with the built-in symmetric encryption, breaking subsequent verifications for plain or custom storage modes.