mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 09:54:43 +10:00
initial commit of v5
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { compare, hash } from "bcrypt";
|
||||
|
||||
const SALT_ROUNDS = 10;
|
||||
|
||||
export const hashPassword = (password: string): Promise<string> => hash(password, SALT_ROUNDS);
|
||||
|
||||
export const verifyPassword = (password: string, passwordHash: string): Promise<boolean> =>
|
||||
compare(password, passwordHash);
|
||||
Reference in New Issue
Block a user