➕ Use bcryptjs instead of bcrypt
This commit is contained in:
1 parent
6cbf5028c9
commit
da57166fe7
5 files changed
+22
-121
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import bcrypt from 'bcrypt';
|
||||
import bcrypt from 'bcryptjs';
|
||||
|
||||
export const hashPassword = (password: string, salt: string) => {
|
||||
return bcrypt.hashSync(password, salt);
|
||||
|
||||
Reference in new issue
Block a user