Files
calendar/packages/lib/auth/hashPassword.ts
T

7 lines
167 B
TypeScript

import { hash } from "bcryptjs";
export async function hashPassword(password: string) {
const hashedPassword = await hash(password, 12);
return hashedPassword;
}