Files
codexium-odoo/server/src/lib/password.ts
2026-03-16 14:38:00 -05:00

11 lines
241 B
TypeScript

import bcrypt from "bcryptjs";
export async function hashPassword(password: string) {
return bcrypt.hash(password, 10);
}
export async function verifyPassword(password: string, hash: string) {
return bcrypt.compare(password, hash);
}