Error when testing App: "Oauth error invalidrequest: The redirecturi is not whitelisted"

Highlighted
New Member
2 0 0

Hi all, I'm just starting with Spotify development, and I'm trying to set up a testing Shopify application, using the following link:

 

https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/embed-your-app-in-s...

 

However when I select the "Test App" option, I get the following error:

 

"Oauth error invalidrequest: The redirect uri is not whitelisted"

 

I am developing on a Mac, running ngrok on a console, and I have set the redirect_uri correctly: "http://82be3451.ngrok.io/auth/callback". This corresponds to the forwarding ngrok address. 

 

I've seen similar issues, but I don't see what's wrong. I've set up the app and store a few times, I think I'm missing something with instructions.

I'm stuck, can you help me please? 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
625 83 89

Hey @ShamrockChess

 

Just taking a stab, could you be missing the s in https://? Can you provide the app name?

0 Likes
New Member
2 0 0

Hi there

Thanks for this, unfortunately that's not it, although I have made that change and I'm still getting the same error- , I've whitelisted URL's - this is the list:

 

https://82be3451.ngrok.io/auth/callback/
http://82be3451.ngrok.io/auth/callback/
http://localhost:3000/

 

The App is called TestApp2 (only starting out here!), here's a link for it if that helps

https://partners.shopify.com/1293927/apps/3444841

 

Thanks for the help. Oisin

 

0 Likes