Trouble with OAuth to renew Online Token - OAuth Cookie error

ski_power
Shopify Partner
9 2 1

I created a dummy app to explore the Shopify app development process. I am having trouble with the OAuth process for renewing the expiry of an online access token. Since the app works inside an iframe, the Shopify.Auth.validateAuthCallback method throws error:

CookieNotFound [Error]: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: xxx-devstore01.myshopify.com.

 

Now the exact same process, when NOT in an iframe works seamlessly. I'm pretty sure this is because third-party cookies are blocked.

 

Could someone help me on how to solve this problem?

Reply 1 (1)

awwdam
Shopify Staff
249 42 36

Hey @ski_power,

Great question. If you are building an embedded application I would suggest our documentation covering session tokens. This outlines implementing, some considerations, links to sample apps, tutorials as well as to our other docs on authentication (multipage SSR, delegate access, access modes)

Hope this gives you a starting point - Cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog