✨ Add basic credentials authentication
This commit is contained in:
5
src/utils/security.ts
Normal file
5
src/utils/security.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import bcrypt from "bcrypt";
|
||||
|
||||
export const hashPassword = (password: string, salt: string) => {
|
||||
return bcrypt.hashSync(password, salt);
|
||||
};
|
||||
Reference in New Issue
Block a user