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

Verify a password against a hash Uses constant-time comparison to prevent timing attacks

Parameters

password: string
storedHash: string

Return Type

Promise<boolean>

Usage

import { verifyPassword } from "doc.ts";