Skip to main content

Function: needsRehash()

needsRehash(storedHash): boolean

Defined in: auth-core/src/hash.ts:102

Returns true if the stored hash uses the legacy format or fewer iterations than currently recommended. Callers can re-hash the password on the user's next successful login.

Parameters​

ParameterType
storedHashstring

Returns​

boolean