A Simple Discord OAUTH2 Nodejs Example.
npm i
in the same folder as index.js.env
do the following:
CLIENT_ID= // Here is your Discord Client ID gonna be.
CLIENT_SECRET= // Here is your CLient Secret gonna be.
REDIRECT_URI= // Here is your Redirect Url that you have added in the Discord Developer Panel.
index.js
do the following:
const allowedUserIds = ["623148006195331092", "971919703637393458", "879301072605315092"];
[This is a whilelist system. Type your Discord Id and other people who has allow to login to the dashboard.]
node index.js
to start the app.3000
.