Login with Discord OAuth2.
POST/auth/discord
Exchange a Discord OAuth2 authorization code for a JWT token.
Flow:
- Redirect user to Discord OAuth2 authorization URL
- User authorizes the application
- Discord redirects back with a
codeparameter - 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
- 200
- 400
Returns the JWT token.
Invalid or expired authorization code.