Discord authentication example with NodeJS + Discord API.
1 - Open index.js file and set clientID , ClientSecret from discord developer portal
2 - Set callback url on the discord developer portal > OAuth2 > General > Redirects http://localhost:3000/callback
3 - npm install
4 - npm test