Verifies a TOTP with constant-time comparison.
Definition
function verifyTOTP(
key: Uint8Array,
intervalInSeconds: number,
digits: number,
otp: string
): boolean;
Parameters
key
: HMAC keyintervalInSeconds
digits
otp
Verifies a TOTP with constant-time comparison.
function verifyTOTP(
key: Uint8Array,
intervalInSeconds: number,
digits: number,
otp: string
): boolean;
key
: HMAC keyintervalInSeconds
digits
otp