Integrating Discord OAuth2

Does anyone know how to make a Discord Login Auth for a website? If you could share your knowledge to me, it would be really helpful. I’ve tried a lot of times but I cannot understand why my website is not getting any information of the logged user. Thank you for your time reading this message.

From a Discord Bot Developer and Glitch User,
TehPig_YT

Hey there,

Before getting started, let’s see what OAuth2 really is:
OAuth2 enables application developers to build applications that utilize authentication and data from the Discord API. This can be used to create things such as web dashboard to display user info, fetch linked third-party accounts like Twitch or Steam, access users’ guild information without actually being in the guild, and much more. OAuth2 can greatly extend the functionality of your bot if used correctly.

Now, that you know what exactly OAth2 really is, you can get started by following this guide:
https://discordjs.guide/oauth2/#a-quick-example

Also, I have changed the topic’s category.

Here’s a link to my project: https://glitch.com/edit/#!/a-discord-site?path=server.js:19:2

From a Discord Bot Developer and Glitch User,
TehPig_YT

The guide that you sent me is not accurate for me.

From a Discord Bot Developer and Glitch User,
TehPig_YT

The project you linked is private, if you would like to send a an invite, I can maybe take a look and help you accomplish what you are trying to do!

1 Like