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

7 lines
197 B
TypeScript

import { compare } from "bcryptjs";
export async function verifyPassword(password: string, hashedPassword: string) {
const isValid = await compare(password, hashedPassword);
return isValid;
}