Discord Login

View as Markdown
Handles Discord OAuth login and returns JWT tokens.

Request

This endpoint expects an object.
codestringOptional
The authorization code from Discord
redirect_uristringOptional
The redirect URI used for the OAuth flow
access_tokenstringOptional

Direct access token (alternative to code)

Response

Login successful, returns JWT tokens

Errors

400
Bad Request Error
500
Internal Server Error