Discord auth url don't work

Hello. I asked before how to make a web dashboard for my bot, but now it doesn’t work.

It says Invalid OAuth2 redirect uri

Here’s my link rn: https://discordapp.com/oauth2/authorize?response_type=code&redirect_uri=https%3A%2F%2Fglobal-protector-test.glitch.me%2Fcallback&scope=identify%20guilds&client_id=649271064328667207

Can you please help me?

Can you confirm that your client ID and everything is correct?
-Happy Glitching tech_dude1

This post was flagged by the community and is temporarily hidden.

Hey @TheBigerGamer, if you provide your project name or invite link (via private message if project is private). I can be able to help you out.

As opposed to that Invalid OAuth2 redirect uri error. Assuming that you’ve created redirect links in Oauth2 section, gotten the Client ID and Client Secret in the Developer Portal. You’ll need to copy these and define them in the project’s server.js file (importantly add the secrets in .env file).


People want to learn code. It doesn’t help when you put them down.
-Happy Glitching tech_dude1

I found the problem! I didn’t knew I needed to put the redirect url in the Oauth2 section! Thank you!

1 Like

I have put out so many guides. But its stuff like this when people say they coded it. When they really just trying to setup a fork of somone elses work and tell ppl them wrote it it isnt fair for the ppl who actually put in the work

My dashboard has the copyright of the original creator!