Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOTP verification failure #140

Open
ragul-ct opened this issue May 4, 2021 · 2 comments
Open

TOTP verification failure #140

ragul-ct opened this issue May 4, 2021 · 2 comments

Comments

@ragul-ct
Copy link

ragul-ct commented May 4, 2021

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 });

@wouterschiedam
Copy link

Did you find a fix for this?

@sabdullahpear
Copy link

Seeing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants