- Optional Discord OAuth2 login (identify scope), enabled by
DISCORD_CLIENT_SECRET, WEB_PUBLIC_URL and SESSION_SECRET; restricted to
members of the configured guild, checked at login.
- Stateless 30-day session in a signed HttpOnly SameSite=Lax cookie; the
OAuth state is checked against its own short-lived cookie.
- The jukebox API accepts the key or the session; with the session,
changes must come from the site's own origin. The member's server name
becomes the uploader name.
- GET /auth/me tells the page whether the login is enabled and who is
logged in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>