Opening the app from admin link (order page) doesn't carry order details after auth

jamalx31
New Member
5 0 0

Hi,

Our app has the option to open from any order page and then show that order details (using order id from url query). Usually this works if user already opened the app recently, but if their session was expired and they try to open the app from the order page after auth, users get redirected to the app without the order details (id) in the url query.

How supposed to fix this?

thanks

0 Likes
SBD_
Shopify Staff
Shopify Staff
1043 141 183

Hey @jamalx31 

if their session was expired

Do you mean their session with your app, or their session with Shopify/admin?

0 Likes
jamalx31
New Member
5 0 0

Hi,

With my app. Idk what is the life-time of a session with the app honestly (most of the code is the same as Shopify tutorial). but I think it's expeircse after a day or 2. 

0 Likes
SBD_
Shopify Staff
Shopify Staff
1043 141 183

The request will contain an order ID, shop, hmac, etc. You can use this information to verify the request and log the merchant in:

https://shopify.dev/tutorials/authenticate-with-oauth#verification

0 Likes