Discord auth
If you need to test or debug Discord authentication, here’s how to proceed:
Configuring Discord authentication
Section titled “Configuring Discord authentication”- Log into the Discord developer portal.
- Create a new application for your sendou development setup.
- Navigate to the Oauth settings.
- 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 fromVITE_SITE_DOMAINin.env). - Copy the Client ID into the
.envasDISCORD_CLIENT_ID. - Reset the Client secret, and copy the new value into your
.envasDISCORD_CLIENT_SECRET. Note that it won’t be shown again, so make sure to grab it. - If your dev server is running, it should have automatically reloaded. If not, restart it.