Function: verifyTOTP()
verifyTOTP(
token,secret):Promise<any>
Defined in: src/auth/shared.ts:443
Validates the provided token against the specified TOTP secret.
Parameters
token
string
The OTP token to validate.
secret
TOTPSecret | TOTPSecret[]
The stored TOTP secret to validate the token against.
Returns
Promise<any>
The otplib verification result if successful, otherwise undefined.