App Bridge JWT token expires after 1 minute

I have a Single-Page-App which uses App Bridge and manually fetches a token on page load with getSessionToken.

It seems like the token has it’s expiry set to 1 minute only. This means after 1 minute, the token will not work with my backend app.

What am I missing? Why is the token set to expire only in 1 minute.. how should I be handling this?

1 Like

Hi,

we call getSessionToken for each request. It looks similar to the example for axios in the help pages:

https://shopify.dev/tutorials/use-session-tokens-with-axios

Hope this helps!

1 Like

seems like that link does not work anymore @Cartbear

1 Like