Oauth error invalid_request: The redirect_uri is not whitelisted

Solved

Oauth error invalid_request: The redirect_uri is not whitelisted

chirag_viradiya
Shopify Partner
20 2 4

Hi

I'm a developing one Shopify public app with nextJS. So, I just create one app from my shopify partner account. But It's seems having redirect_uri whitelist issue even URL is same to same in the whitelist input.

Here is my App URL: https://personaliser.vps.webdock.io
Error Details:

cnviradiya_0-1640858346755.png

I'm thankful if you have a valid solution

  • Linked-in
  • Github
  • Whatsapp
  • Twitter
Accepted Solution (1)
chirag_viradiya
Shopify Partner
20 2 4

This is an accepted solution.

BTW, @flareAI!

I got the issue and resolved it. Let me write here list of possible way to trace this issue. so, it would be helpful in future.

If you have redirect_uri is not whitelisted Issue on your app, Here is some guidance to verify at configuration.

1. Make sure you have added your call back url to the "Allowed redirection URL(s)" List without trailing "/"
2. Make sure you have same Shopify key and secret use for your app which is show at your app setup page
3. Make sure your app domain have SSL
4. If you are using VPS than make sure after changes your .env variables you must rebuild your application and restart your services (If you are using pm2) (In my case issue was the restart the services)

  • Linked-in
  • Github
  • Whatsapp
  • Twitter

View solution in original post

Replies 6 (6)
chirag_viradiya
Shopify Partner
20 2 4

Thanks for the quick reply!
But I already go through the solutions which you are referring it's not work for me as well issue with all browsers event I try with "Test on development store"

  • Linked-in
  • Github
  • Whatsapp
  • Twitter
chirag_viradiya
Shopify Partner
20 2 4

This is an accepted solution.

BTW, @flareAI!

I got the issue and resolved it. Let me write here list of possible way to trace this issue. so, it would be helpful in future.

If you have redirect_uri is not whitelisted Issue on your app, Here is some guidance to verify at configuration.

1. Make sure you have added your call back url to the "Allowed redirection URL(s)" List without trailing "/"
2. Make sure you have same Shopify key and secret use for your app which is show at your app setup page
3. Make sure your app domain have SSL
4. If you are using VPS than make sure after changes your .env variables you must rebuild your application and restart your services (If you are using pm2) (In my case issue was the restart the services)

  • Linked-in
  • Github
  • Whatsapp
  • Twitter
tecoektamerai
Shopify Partner
66 5 17

Hello @chirag_viradiya 
Hope you are well!!!
I'm facing the same issue. However, I run on local using ngrok.
My app is installed but it gives me this error when I try to open it: https://prnt.sc/uSu9xHfCC2sT
Could you please help me out?What thing is missing

Thank you 

chirag_viradiya
Shopify Partner
20 2 4

Hi @tecoektamerai!

In my case, I already found the solution.

it's because of extra "/" in the URL

So, Will you please share your .env or redirect URL? 

  • Linked-in
  • Github
  • Whatsapp
  • Twitter
ScalaApps
Shopify Partner
79 3 15

Thanks, it took me ages to figure out what was happening.


I was actually using the wrong API key from another app during offline auth, but Shopify kept showing me the "The Redirect_uri Is Not Whitelisted" page

Scala Apps



- If you find my reply helpful, please hit Like and Mark as Solution

- Se você achar minha resposta útil, por favor clique em Curtir e Marcar como Solução

Parcelamento/Installments | Hide sold variants | Apps | Blog