Shopify App Stuck in Authentication loop

Solved

Shopify App Stuck in Authentication loop

samir_al_anabi
Shopify Partner
8 3 0

Hi

I have developed a SHopify Application, however when i installed on one of the client. The app stuck in loop and chrome throws message many times. I installed same application a fews days before. Everything was fine, no infinite loop. Whats happening with Shopify. Same application works for one customer and not for another. See blow message, it is very urgent to solve this issue.

 

Blocked script execution in '<URL>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. Also seeing another error. See screenshot

Accepted Solution (1)

samir_al_anabi
Shopify Partner
8 3 0

This is an accepted solution.

Replying to my own question. i solved it my scopes weren't matching as in shopify.app.toml file and in  environment variable. When working on 3rd party CCC feature. It forgot to add it in ENV "SCOPES". Shopify should provide better error in case of mismatch instead of strange error that i shared above. It pointed to completely different direction which was wrong in this case.

My old scopes

scopes = "customer_read_orders,read_orders"

 

And when of CCC they were

scopes = "customer_read_orders,read_orders,write_shipping"

View solution in original post

Reply 1 (1)

samir_al_anabi
Shopify Partner
8 3 0

This is an accepted solution.

Replying to my own question. i solved it my scopes weren't matching as in shopify.app.toml file and in  environment variable. When working on 3rd party CCC feature. It forgot to add it in ENV "SCOPES". Shopify should provide better error in case of mismatch instead of strange error that i shared above. It pointed to completely different direction which was wrong in this case.

My old scopes

scopes = "customer_read_orders,read_orders"

 

And when of CCC they were

scopes = "customer_read_orders,read_orders,write_shipping"