auth embedded app in chrome's incognito mode

Hyildirimkm
Shopify Partner
4 0 0

Hi;

I am developing my first shopify app and i struggling with this error.

 

I have no error on chrome's normal mode. In incognito mode it redirects to "https://my_shop_name.myshopify.com/admin/auth/login"

 

Theese are the steps;

 

first request come to my app:

"https://app.mysite.com/auth/shopify.php?embedded=1&hmac=a7ea1f57663a9..."

auth-shopify-1.png

 

i redirect to "https://my_shop_name.myshopify.com/admin/oauth/authorize?client_id=fd27a74fc***&scope=read_orders..."

authorize-2.png

 

For some reason shopify did not redirect back to my app. instead redirects to "https://my_shop_name.myshopify.com/admin/auth/login"

auth-login-3.png

 

i am using this PHP library: https://github.com/gnikyt/Basic-Shopify-API

Can you help me?

 

Replies 2 (2)
Shine18pk
Shopify Partner
30 7 13

Hey
Embedded app use JWT authentication, which is stored in cookies in browser. and you are trying to use it in incognito mode, which doesn't save cookies. 

To use embedded app in incognito mode, you would have to allow to save third party cookies.

- Need a Shopify developer? Chat on WhatsApp
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip , my code - a perfect blend! ❤️
Hyildirimkm
Shopify Partner
4 0 0

Thank you for your response. 

I can allow cookies in my browser but Shopify App Review Team forces me to resolve this issue. How can i do that without allowing third party cookies?