import bcrypt from "bcryptjs"; export async function verifyPassword( plainTextPassword: string, hashedPassword: string, ): Promise { return bcrypt.compare(plainTextPassword, hashedPassword); } export async function hashPassword(plainTextPassword: string): Promise { return bcrypt.hash(plainTextPassword, 12); }