ff52550173 | ||
---|---|---|
node_modules | ||
views | ||
.gitattributes | ||
README.md | ||
app.js | ||
config.json | ||
package-lock.json | ||
package.json |
README.md
express-discord-oauth2
An example on how to use Discord's OAuth2 in Node.js using Express
Instalation
- Install Node.JS here
- To install the dependencies, run
npm install
Configuration
-
port
: The port the website will use -
oauth2
:redirect_uri
: URI that you'll be redirected after Discord authorizationclient_id
: Your Discord application IDclient_secret
: Your Discord application secretscopes
: Scopes that will be requested
Discord's OAuth2 API docs: https://discord.com/developers/docs/topics/oauth2
cookie
:maxAge
: Max age of cookies in milliseconds
You can read about Discord's OAuth2 API here