-
Notifications
You must be signed in to change notification settings - Fork 388
loadCurrentSession fails with error "jwt not active". Add support for clockTolerance
when verifying JWTs.
#207
Comments
clockTolerance
when verifying JWTs.
I rolled latest changes and facing the same issue.
|
I already have the setting on that I sync with |
I was having this issue, also on Big Sur, and fixed it by installing ChronyControl as explained in this answer on StackExchange |
I'm having the issue on Windows 10. My clock is syncing correctly with time.windows.com and I still get this error very often. |
Is there any solution update on this thread as I am facing this issue on Windows 10 for the past 1 week and not able to find any solution ? |
Update to V2 of the library. |
I am facing this issue. Why is nbf value coming of future ? Any solution please as my app is in production and customers are complaining that their requests are getting 401. |
Fixed by #227 |
This is still happening to users periodically. Is it possible to allow us to set the clock tolerance level ourselves? |
I experience the same issue still. |
Still experiencing the same problem. |
Overview/summary
Online session tokens with JWTs are susceptible to timing issues between different systems. Shopify uses the NBF value in the JWT spec which can cause issues on some systems.
The used package to verify JWTs is
@auth0/node-jsonwebtoken
. This package includes the optionclockTolerance
to allow for time drift or time difference.Motivation
On my development machine, I synchronize with
time.apple.com
. So no manual intervention is happening from my side. Yet I'm consistently being provided with JWTs with an NBF value in the future. Example:Where I have added the
now
property myself to the debug. As you can seeThe
nbf
value is in the future.I would like to see support for an optional
clockTolerance
setting for verifying JWTs. It makes development a massive burden as I have to constantly refresh to receive a working token. I can use the token until expiry, and then I start receiving tokens withnbf
in the future and my app has to re-auth again.Shopify/shopify-app-bridge#59
https://community.shopify.com/c/Shopify-APIs-SDKs/JWT-Token-gt-nbf-value-in-future-time-jwt-not-active-error/td-p/1176040
#137
Checklist
The text was updated successfully, but these errors were encountered: