Skip to content

Commit 8617dc0

Browse files
authored
docs: fix passwordNeedsRehash usage in README (#502)
1 parent 3794a03 commit 8617dc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ if (await verifyPassword(hashedPassword, 'user_password')) {
304304
It also provides a `passwordNeedsRehash` function to check if a password needs to be rehashed. This is useful when the hash settings are changed, such as as increasing the scrypt cost parameters.
305305

306306
```ts
307-
const needsRehash = await passwordNeedsRehash(hashedPassword)
307+
const needsRehash = passwordNeedsRehash(hashedPassword)
308308

309309
if (needsRehash) {
310310
// Password needs to be rehashed

0 commit comments

Comments
 (0)