import bcrypt from 'bcryptjs' const ROUNDS = 10 export async function hashPassword(password: string): Promise { return bcrypt.hash(password, ROUNDS) } export async function verifyPassword(password: string, hash: string): Promise { return bcrypt.compare(password, hash) }