Files
accountkit/test
CatoandClaude 98761ff1aa feat(auth): read a product's own legacy password format (#51)
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>
2026-11-01 08:40:17 +01:00
..