Appearance
Discord authentication
Discord authentication lets your users sign in with the Discord account they already use for communities and chats. Once connected, you can add a “Continue with Discord” button to your app.
Setup in the Discord dashboard
- Go to the Discord Developer Portal.
- Create a new application (or open an existing one).
- Open the OAuth2 settings for your application.
- Add a redirect URL (the URL Discord sends users back to after login).
- Use the full URL of the page you select as
Success pagein WeWeb.
- Use the full URL of the page you select as
- Copy the credentials you’ll need (usually a
Client IDandClient Secret).
Connect Discord in WeWeb
- In the WeWeb editor, go to
Data & API → Auth → Integrating providers. - Select
Discordand turn on theEnabletoggle. - Paste your Discord credentials into the fields shown in WeWeb.
- Click
Save.
Test sign in
- Add a “Continue with Discord” button in
Interface. - Create a workflow on click and add
Sign in with social provider. - Set:
Provider:discordSuccess page,Error page, And (optional)New user page
- Preview and run the sign-in flow.
Common pitfalls
Redirect URL mismatch
- Make sure the redirect URL in Discord exactly matches the page URL used as
Success pagein WeWeb. - Check you’re using the correct environment (preview vs production).
Wrong credentials
If Discord returns an “invalid client” error, re-copy the Client ID and Client Secret from the Discord portal and paste them again in WeWeb.
Reference
| Setting in WeWeb | Description | Where to find it in Discord |
|---|---|---|
Client ID | Identifies your Discord application. | Your app page in the Developer Portal. |
Client Secret | Used to complete the sign-in flow securely. | OAuth2 settings in the Developer Portal. |
FAQs
Which redirect URL should I add in Discord?
Add the full URL of the page you choose as Success page in Sign in with social provider (for the same environment you’re testing).

