initial commit of v5

This commit is contained in:
Amruth Pillai
2026-01-19 23:31:54 +01:00
parent 55bdfd0067
commit cad390fa13
1132 changed files with 200807 additions and 165288 deletions
+8
View File
@@ -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);