URGENT: OAuth Re-installation Error – Assistance Required!

Shopify Partner
5 0 0

Hi all,

 

In the final stages of finishing an app for a client.

 

Everything is completed apart from a OAuth re-installation error which I have detailed below. This is very annoying as this is the only problem keeping me from finishing the project!

 

 

Error details:

 

If the user has removed the app from their Shopify store, and try to access any page directly, we are trying to redirect the user to install the app directly with this code: http://prntscr.com/qqxqs7

 

However,

 

OmniAuth throws us an error about CSRF vulnerability: http://prntscr.com/qqxrcy

 

 

Can someone please advise on what we should do, our client is growing very impatient!

 

Thank you :)

0 Likes
Highlighted
Shopify Partner
41 0 28

Try

Shopify.redirect or Shopify.remoteRedirect methods if you are using ESDK

 

https://help.shopify.com/en/api/embedded-apps/embedded-app-sdk/methods#shopifyapp-remoteredirect-pat...

0 Likes