(password: string, hashPassword: string)
| 170 | * the hashLegacy function |
| 171 | */ |
| 172 | export const isHashLegacyMatch = (password: string, hashPassword: string) => { |
| 173 | const hashedWithLegacy = hashLegacy(password) |
| 174 | return safeCompare(hashedWithLegacy, hashPassword) |
| 175 | } |
| 176 | |
| 177 | export type PasswordMethod = "SHA256" | "ARGON2" | "PLAIN_TEXT" |
| 178 |
no test coverage detected