Skip to main content

Login with Discord OAuth2.

POST 

/auth/discord

Exchange a Discord OAuth2 authorization code for a JWT token.

Flow:

  1. Redirect user to Discord OAuth2 authorization URL
  2. User authorizes the application
  3. Discord redirects back with a code parameter
  4. Send the code to this endpoint to get a JWT token

The JWT token should be included in subsequent requests as: Authorization: Bearer {token}

Request

Responses

Returns the JWT token.