Open ragul-ct opened 3 years ago
Why do sometimes speakeasy.totp.verify() method return false even though the secret and token matches.
Can anyone tell me if there is any issue with the way i use it?
Below is my implementation to create a token and verify a token
speakeasy.totp({ secret, encoding: 'base32', digits: 4, step: 600 });
speakeasy.totp.verify({ secret, token, encoding: 'base32', step: 600, digits: 4 });
Did you find a fix for this?
Seeing the same issue.
Why do sometimes speakeasy.totp.verify() method return false even though the secret and token matches.
Can anyone tell me if there is any issue with the way i use it?
Below is my implementation to create a token and verify a token
speakeasy.totp({ secret, encoding: 'base32', digits: 4, step: 600 });
speakeasy.totp.verify({ secret, token, encoding: 'base32', step: 600, digits: 4 });