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

Topic summary

Developers building Shopify apps with Node.js and React are encountering a JWT token parsing error (\

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

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

In Console:

Error: Failed to parse session token

2 Likes

I’m having the same issue.

2 Likes

Same issure here.

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.

2 Likes

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.

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.

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 :slightly_smiling_face:

A bit hard to connect clock syncing with this error.