I am facing an common Shopify OATH authorization error, red every topic on that and still not resolved it.
I have an oauth error invalid_request: The redirect_uri is not whitelisted. On my app setup page, i copied the links correctly, i have :
App URL : https://MYNGROK.ngrok.io/
Allowed redirection URL(s) : https://MYNGROK.ngrok.io/auth/callback
When I test this on any of my developpement stores, in the redirect_uri on the request i have :
redirect_uri=https%3A%2F%2Fhttps%3A%2F%2MYNGROK.ngrok.io%2Fauth%2Fcallback
I know that the problem comes from this; why do I have https%3A%2F twice ? And how can I resolve this ?
Thanks all!
JAN 2023 UPDATE - For anyone else who stumbled upon this issue.. The solution is actually the opposite of what YY Zheng is saying now if using the current default Shopify App configuration.
When you set your HOST environment variable for production be sure to include the HTTPS:// as detailed in the deploy docs: Https twice on my redirect_uri shopify when trying to authorize my application
ie HOST="HTTPS://my-cool-app.com"