function verifyPassword
verifyPassword(
password: string,
storedHash: string
): Promise<boolean>

Checks password against a hash made by hashPassword.

Parameters

password: string
storedHash: string

Return Type

Promise<boolean>

Usage

import { verifyPassword } from "api/lib/password.ts";