lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.96k stars 460 forks source link

Fix `LegacyScrypt` #1370

Closed pilcrowOnPaper closed 7 months ago

pilcrowOnPaper commented 7 months ago

Fixes #1369 .

Hashes were supposed to include an s2: prefix but didn't. If you are using v3 in production, please add a s2: prefix to all hashes generated post v2. (e.g. s2:aaaaaa:bbbbbbbbbb). This is only an issue if you're using LegacyScrypt in v3 specifically

Adds test to prevent the same issue from appearing