App installation is not working

Highlighted
Excursionist
28 2 0

I was testing my app by entering the url: host/auth?shop=name-of-shop.myshopify.com it works and redirects me to the installation page (it exchanges the code with a valid access token and redirects to nextsjs (frontend) upon completion). But shopify QA team rejected my app because when i login to my partners dashboard and go to the app and click on "test on development store" then i chose the store, it spins undefinitively and does not redirect to the installation page.  The link is host/?hmac=###?shop=###.myshopify.com?timestamp=###

 

How to fix that?

0 Likes
Highlighted
Excursionist
28 2 0

console gives me app bridge error shopOrign must be provided as i added app bridge to my nextjs and added a parameter:

shopOrigin = cookies.get('shopOrigin') which is set within /auth on nodejs when it succeeds i do:

res.cookie('shopOrigin'shop, { httpOnly: false })
 
but the /auth endpoint (callback) was not called, this method does not call the callback? 
0 Likes