Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Embedded App's Offline Access Token Expires Upon Restart, Not Reinstallation

Embedded App's Offline Access Token Expires Upon Restart, Not Reinstallation

Keiichiro
Shopify Partner
5 0 0

I have a custom embedded app installed in my store. The app is hosted on Heroku and gets restarted once a day according to Heroku's policy. The problem is, the offline access token that my app has exchanged with the initial session token acquired from App Bridge seems to expire every time my app gets restarted by Heroku. I think this shouldn't happen because the access token is offline, so it can be used for as long as the app is installed.

 

I'm not really in trouble, as I can re-acquire another access token once Heroku restarts my app, but I'd like to understand what is actually happening between my app and the Shopify API during the authentication process. I'd appreciate any hints or insights about the situation.

 

 

Replies 0 (0)