import bcrypt from 'bcryptjs'; export const hashPassword = (password: string): Promise => bcrypt.hash(password, 12); export const validatePassword = (password: string, hash: string): Promise => bcrypt.compare(password, hash);