Why am I getting a JWT token error in my Node.js and React app?

Sargent2510
Visitor
1 0 2

I followed the "Build a Shopify App with Node.js and React", and I am having some errors regarding JWT token Error...

 

error.PNG

 

 

In Console:

Error: Failed to parse session token

Replies 6 (6)

Webdibs
Shopify Partner
30 2 9

I'm  having the same issue.

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.

abhinavp00719
Shopify Partner
28 2 21

Same issure here.

Founder Descrii Description Generator

Teeto
Visitor
2 0 3

There are some workarounds on this page. https://github.com/Shopify/shopify-node-api/issues/137#issuecomment-817139545

Syncing my time worked for me.

Would be nice to have some clockTolerance somewhere in the file.

MaxDesign
Shopify Expert
213 15 83

As Teeto said it can be linked to clock sync. For instance on windows 11 the fix can be as simple as manually synchronizing time in the "time & language" settings.

 

31pe1zQZLY.png

Reach out to me at admin@maxdesign.expert
betelgeus
Shopify Partner
6 1 2

Thanks. Syncing the clock fixed the issue. 

 

I had to stop syncing the clock a while back to do some testing in a different time zone. And after that I kept getting these stupid errors. 

None of my colleagues where getting them so it was very frustrating 🙂 

 

A bit hard to connect clock syncing with this error. 

 

 

WhiskeyTangoFox
Shopify Partner
1 0 0

I was getting this error on my Shopify App in dev which had been working fine the last couple weeks.  Due to comment in this thread about time, I realized there a time change 2 days ago ( move clocks 1 hour back ).  So I restarted my macbook and that fixed the issue.