Skip to content

Discord auth

If you need to test or debug Discord authentication, here’s how to proceed:

  1. Log into the Discord developer portal.
  2. Create a new application for your sendou development setup.
  3. Navigate to the Oauth settings.
  4. Add a redirect for http://localhost:5173/auth/callback. If your dev server is running elsewhere, make sure the hostname and port match (the callback URL is built from VITE_SITE_DOMAIN in .env).
  5. Copy the Client ID into the .env as DISCORD_CLIENT_ID.
  6. Reset the Client secret, and copy the new value into your .env as DISCORD_CLIENT_SECRET. Note that it won’t be shown again, so make sure to grab it.
  7. If your dev server is running, it should have automatically reloaded. If not, restart it.