7 lines
197 B
TypeScript
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;
|
||
|
}
|