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
| Parameter | Type |
|---|---|
args | { expires: Date; token: string; tokenHash: string; } |
args.expires | Date |
args.token | string |
args.tokenHash | string |
Returns
boolean