mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 05:37:35 +01:00
Add `legacyPassword: { matches, verify }` beside `legacyBcrypt`, on the
server and the Next runtime. A product that stored its own format (Loki's
hand-rolled scrypt `hex.salt`) imports its hashes as they are; `matches`
claims a hash by shape and is asked first, `verify` checks it. New and
changed passwords are native scrypt, as with bcrypt.
test/legacy-format-runtime.test.js: own-format and bcrypt people sign in on
one runtime, wrong passwords are refused, and a password change leaves the
old format for native scrypt.
Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML
Co-authored-by: Claude <noreply@anthropic.com>