-
Notifications
You must be signed in to change notification settings - Fork 38
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
is it possible to have 4 digit token, not 6 #4
Comments
That is not possible with this library which implements HOTP algorithm. 6 digits is the minimum. See: https://en.wikipedia.org/wiki/HMAC-based_One-time_Password_Algorithm |
Thanks for the link. I guess will have to stick with 6. |
Sorry, I was wrong on the token length. You can specify the token length by passing e.g., |
Oh thanks! Thats what I was looking for |
So basically I want to generate 4 digit code instead of 6 and also want to control expiration
The text was updated successfully, but these errors were encountered: