2
0
Files

7 lines
167 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
import { hash } from "bcryptjs";
export async function hashPassword(password: string) {
const hashedPassword = await hash(password, 12);
return hashedPassword;
}