-
Notifications
You must be signed in to change notification settings - Fork 9
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
authenticatedFetch is consistently providing me with JWTs with nbf ("Not Before Claim") values in the future #59
Comments
@tolgap Hi tolgap, I am also experiencing this. I have not confirmed that my timing is off. How did you debug the jwt token in that createShopifyAuth section? Have you managed to fix this? |
@bkspace Thanks for the response. I guess, with the server.json that the base projects get you started with, I am trying to understand where the JWT get's verified. |
Also having this issue in development, following build-a-shopify-app-with-node-and-react tutorial. package.json details: "dependencies": {
"@shopify/app-bridge-react": "^2.0.3",
"@shopify/app-bridge-utils": "^2.0.3",
"@shopify/koa-shopify-auth": "^4.1.3",
"@shopify/polaris": "^6.5.0",
"apollo-boost": "^0.4.9",
"dotenv": "^10.0.0",
"graphql": "^15.5.1",
"isomorphic-fetch": "^3.0.0",
"koa": "^2.13.1",
"koa-router": "^8.0.8",
"next": "^11.0.1",
"react": "^17.0.2",
"react-apollo": "^3.1.5",
"react-dom": "^17.0.2",
"store-js": "^2.0.4",
"webpack": "^4.46.0"
} |
I had the same issue with |
This is solved for me since Shopify/shopify-api-js#207 landed in |
Describe the bug
When my Mac OS X 11.3.1 Big Sur machine is close to a new minute on my system clock, I notice strange behavior:
Error: Failed to parse session token <token>: jwt not active
This error is happening consistently on my local development environment. When debugging the JWT parsing that is provided by
@shopify/koa-shopify-auth
, I notice the following behavior:I have added the
now
property to the JWT myself. As you can see, thenbf
value of my token is in the future of my development machine:This seems to mostly happen, when my machine is 3 seconds close to a new minute. So for instance: between
13:30:57
and13:30:59
, I will run into this issue.Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
"@apollo/client": "^3.3.15"
"@shopify/app-bridge-react": "^2.0.2"
"@shopify/app-bridge-utils": "^2.0.2"
"@shopify/koa-shopify-auth": "^4.1.3"
"koa-session": "^6.2.0"
"koa": "^2.13.1"
Platform
Additional context
Next.js app, using Koa. The default
Shopify/shopify-app-node
setup fromshopify create
.I noticed some others running into this:
The text was updated successfully, but these errors were encountered: