-
Notifications
You must be signed in to change notification settings - Fork 81
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
authenticate_otp now returns timestamp or nil instead of boolean #57
Comments
Is it ok, that I get 0 as return value? I am using counter based OTP. |
@Pahicz , it seems that for counter based OTP, ROTP returns the value of the counter instead of the timestamp. |
We run through this problem too. Getting a timestamp or nil (when it should be false). Any update or workaround for this? |
@kevinhq , this gem, For time-based tokens, For counter-based tokens, The docs on this gem should probably be updated, but I don't see much activity from the maintainer. |
* Ensure `authentication_otp` returns a boolean value ref. #84 #57 (comment) * fix lint violations
PR #85 merged 🎉 |
ROTP changed their implementation of
verify
to return timestamp (eg 1561654770) when the otp is valid and nil otherwise instead of atrue
orfalse
. README still says thatauthenticate_otp
returnstrue
orfalse
.The text was updated successfully, but these errors were encountered: