You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just have one quick question / problem with my implementation: I can't seem to increase the timeout window longer than ~20seconds, regardless of how large I set the window parameter.
Even with the window set to 10,000 as you see here, I get a delta of -1 after ~20 seconds. While I'm sending / verifying tokens asynchronously, I've checked to make sure that the sent secret/token match the verifying secret/token. Am I missing something?
Thanks!
The text was updated successfully, but these errors were encountered:
The token succeeds on the verifyToken call if the response is not null. That's the only pass/fail to check. By checking that delta == 0, you're forcing a 30s window. The delta value is just extra information.
Remove the check on 'delta === 0' and then your window will work as you change it. Once the time window is exceeded, verifyToken will return null.
Thanks for providing such a great tool!
I just have one quick question / problem with my implementation: I can't seem to increase the timeout window longer than ~20seconds, regardless of how large I set the
window
parameter.My code is as follows:
Even with the window set to 10,000 as you see here, I get a delta of -1 after ~20 seconds. While I'm sending / verifying tokens asynchronously, I've checked to make sure that the sent secret/token match the verifying secret/token. Am I missing something?
Thanks!
The text was updated successfully, but these errors were encountered: