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