build ok,
This commit is contained in:
@@ -2,7 +2,6 @@ import bcrypt from 'bcrypt';
|
||||
|
||||
const generateHash = async (password: string) => bcrypt.hash(password, await bcrypt.genSalt(10));
|
||||
|
||||
const validatePassword = async (password: string, hash: string) =>
|
||||
bcrypt.compare(password, hash as string);
|
||||
const validatePassword = async (password: string, hash: string) => bcrypt.compare(password, hash as string);
|
||||
|
||||
export { generateHash, validatePassword };
|
||||
|
Reference in New Issue
Block a user