This is a simple Express.js server that implements Discord OAuth2.0 for user authentication. It redirects users to Discord's OAuth page, handles the OAuth callback, fetches user information from Discord, and then redirects the user to a Google form with the Discord user information is pre-filled.
- Clone the repository
- Intall the dependencies
npm install
- Create a .env in the root directory and add Discord client ID and client secret
DISCORD_CLIENT_ID=your-discord-client-id
DISCORD_CLIENT_SECRET=your-discord-client-secret
- Start the server
npm start
- The server will run at
http://localhost:3000
- Express.js
- axios
- dotenv