Discord sign-in#

GET /auth/discord/login#

Start a Discord sign-in

Redirects the browser to Discord’s authorize screen. The next query parameter is honored only if it is a same-site path starting with a single /; it is stored in the session and consumed by the callback.

Parameters

Name

In

Type

Required

Description

next

query

string | null

no

Where to send the browser after sign-in.

Response 200 — Redirect to Discord’s authorize screen.

POST /auth/logout#

Sign out

Clears the session cookie. Returns success even if there was no active session.

Response 204 — The session was cleared.