otplib-authenticator/checkDelta

Checks the provided OTP token against system generated token Returns the delta (window) which token passes. Returns null otherwise.

Source:
Parameters:
Name Type Description
token string

the OTP token to check

secret string

your secret that is used to generate the token

options object

options which was used to generate it originally

Returns:
Type:
integer | null