2
0
Files

7 lines
197 B
TypeScript
Raw Permalink Normal View History

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