Skip to content

Commit 22a59b8

Browse files
committed
fix readme
1 parent fe5de0a commit 22a59b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ Sets a custom method for generating random session IDs.
175175

176176
Sets a custom method for generating random email verification codes.
177177

178-
##### `setPasswordHashingMethods(fn: () => string)`
178+
##### `setPasswordHashingMethods(fn: () => IPasswordHashingMethods)`
179179

180-
Sets a custom method for generating random email verification codes.
180+
Sets custom methods for hashing and verifying passwords.
181181

182182
##### `getSession(sessionId: string)`
183183

tests/core-email-password.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe("SlipAuthCore", () => {
7878
}
7979
auth.setPasswordHashingMethods(() => ({
8080
hash: async (password: string) => sanitizePassword(password) + mocks.passwordCount,
81-
verify: async (sourceHashedPassword, rawPassword) => {
81+
verify: async (sourceHashedPassword: string, rawPassword: string) => {
8282
const salt = sourceHashedPassword.split("$").at(-1);
8383
if (!salt) {
8484
return false;

0 commit comments

Comments
 (0)