-
Notifications
You must be signed in to change notification settings - Fork 229
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
How to generate a token that is valid only 15 minutes? #124
Comments
use window delta |
Thanks @railsstudent I try this:
Is that right? Is this the right way ensure that token is valid only 15 minutes from now? |
Sorry, my previous reply is incorrect. if the token is valid for 15 minutes, step is 60 * 15 = 900. Therefore, // token expires every 15 minutes // validate token against the current time // compute the delta against the current time
|
Hi all!
I'm tring to implement this logic:
User types his email and the API send him a token by email (without use Google Authenticator) .
This token has to be valid only for 15 minutes. But all my tentatives after generate token return false.
First question: Can I do this with speakeasy without use Google Auth.. ?
Second question: If yes, do you guys can help me, by showing what I am doing wrong in this code below?
If I remove
step
it works, but just for 30 secondsHow can I change this?
Thanks a lot
The text was updated successfully, but these errors were encountered: