Skip to main content

Function: verifyOneTimeToken()

verifyOneTimeToken(args): boolean

Defined in: oneTimeToken.ts:56

Constant-time check of a plain token against a stored hash, also validating the expiration date.

Parameters

ParameterType
args{ expires: Date; token: string; tokenHash: string; }
args.expiresDate
args.tokenstring
args.tokenHashstring

Returns

boolean