mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-27 21:18:30 -05:00
993 B
993 B
Configuring Discord Authentication
⚠️ You probably don't need this ⚠️
When run in dev mode, Sendou provides the option to "impersonate" an account in the developer menu. You can use this to authenticate without configuring Discord auth.
If you need to test or debug Discord authentication, here's how to proceed:
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. - Copy the Client ID into the
.env. - Reset the Client secret, and copy the new value into your
.env. 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.