Your redirect URI appears to include a specific URL path and a PHP page extension. All you need is a shorter version. Like https://thewebsite.com or https://thewebsite.com/path And ensure that the redirect URI exactly matches what you have defined in the app as whitelisted redirect points.
I was having this issue because I was running this and not making use of ngrok, as it keeps breaking midway as I test my app. I have my own local proxy I am making use of, but I had forgotten to update the host in myproject’s env file. Check if the whitelisted URL in the app settings matches the host URL. Otherwise it will fail.
============================denial of service ===============================
Oops, something went wrong.
What happened?
Oauth error invalid_request: The redirect_uri is not whitelisted
What can I do?
Press the back button on your browser.
Return to your admin dashboard.
This error is normally caused by …
ws 5.0.0 - 5.2.2 || 6.0.0 - 6.2.1 || 7.0.0 - 7.4.5
Severity: moderate
Regular Expression Denial of Service - https://npmjs.com/advisories/1748
fix available via npm audit fix
node_modules/ws
fix available via npm audit fix
node_modules/ws
15 vulnerabilities (13 moderate, 2 high)
open CMD
=>npm audit fix
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
use if you have to with extra care.
npm audit fix --force
added 62 packages, removed 409 packages, changed 90 packages, and audited 1667 packages in 1m
41 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
Once you get 0 vulnerabilities, you should be able to have access again!
This page is the first result on Google, for any future visitor the thing that fixed to me was the trailing slash in the HOST environment key that needs to go away. This was in a nodejs/react bridge embedded app.
EG: HOST=[https://myapp.com/](https://myapp.com/) needs to be HOST=[https://myapp.com](https://myapp.com)
https://www.url-encode-decode.com/
When you get that error look at the url string in the browser bar. There is a redirecturl url param. Copy and past that into the url site, and you can see what the redirect url its attempting to use is. I found for example mine had https in it twice, and had to modify some api parameters.
Reach out to me at https://tlchatt.com if you have any questions.