cal.pub0.org/packages/features/auth/lib/hashPassword.ts

7 lines
167 B
TypeScript

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