Skip to main content
Connect your AI agent to a Discord server to welcome new members, play music, manage user roles, and integrate with other services to post notifications.

Connect Discord to Auth0

1

Discord setup

  1. Visit the Discord Developer account page and sign up.
  2. Create a new application in the Discord Developer Portal.
  3. Navigate to the OAuth2 section and configure OAuth redirect URL:
    • Redirect URL: https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  4. Note your Client ID and Client Secret.
  5. Select the permissions and scopes your application needs:
    • For basic login, the identify scope is generally required to get basic user information.
  6. Select Save changes.
To learn more about setting up Discord, read the Login with Discord documentation.
2

Auth0 setup

This guide walks you through setting up the Discord connection in Auth0. For an end-to-end example that shows how to set up your app to call third-party APIs on the user's behalf using a connection like this, read the Call third-party APIs on user's behalf quickstart.

Token Vault configuration example

To configure the Token Vault for your Discord connection, you can use the following code snippet in your application:

Next steps