Discord social sign in
You can enable users to sign up and sign in using their Discord credentials. To enable this, you’ll need a Discord app and some developer know-how.
Get your Kinde callback URL
Link to this section- In Kinde, go to Settings > Authentication.
- In the Social connections section, select Add connection.
- In the window that appears, select Discord, then select Save. Discord now appears in the Social connections list.
- On the Discord tile, select Configure.
- In the Callback URL section:
- If you use Kinde’s domain as your default, copy the Kinde domain URL.
- If you use custom domains, select the Use custom domain instead switch.
- If you have only one custom domain, copy the Custom domain URL. If you have custom domains for multiple organizations, select each one from the list and copy the callbacks for each. You need to enter all custom domain callbacks in the Discord app.
- Use the copied Callback URL to set up the app, see below.
Create and configure a Discord app
Link to this section- Log in to the Discord developer site and create a new app.
- Give it a name and then go to OAuth2 in the side menu.
- In OAuth2 > General, copy the Client ID and Client secret somewhere you can access it later. If the client secret is not showing, select Reset Secret.
- Paste in the Callback URLs (the ones you copied above), e.g.
https://yourdomain.kinde.com/login/callback
. Add entries for all your organization custom domain callbacks, e.g.account.customdomainone.com/login/callback
,account.customdomaintwo.com/login/callback
, etc. - Save your changes.
Add Discord credentials to Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- On the Discord tile, select Configure.
- Paste the Client ID and Client secret from the Discord app into the relevant fields.
- Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified. We recommend leaving this off for maximum security.
- Select which applications will allow Discord social sign in.
- Select Save.
Users will now see Discord as an option to sign up and sign in to the selected applications.