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 token generated is sometimes only 5 digits long. #2

Open
heyjorge opened this issue Oct 17, 2014 · 1 comment
Open

TOTP token generated is sometimes only 5 digits long. #2

heyjorge opened this issue Oct 17, 2014 · 1 comment

Comments

@heyjorge
Copy link

Occasionally the TOTP token that is generated that should have 6 digits, is actually generated with only 5. I've had to add in a check where if totp.now() only gives a 5 digit token to then instead generate the token with minus 30 seconds from current time.

@BFTusk
Copy link

BFTusk commented May 16, 2016

This is just, because your token begins with a zero (0)

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

2 participants