> For the complete documentation index, see [llms.txt](/llms.txt).

# Discord Social Login with Embedded Wallets

[Discord login](https://discord.com/developers/docs/topics/oauth2) is a social login provider that allows users to sign in using their Discord credentials. Embedded Wallets supports Discord as a social login provider, allowing developers to offer a familiar and quick authentication method for users with Discord accounts.

To integrate Discord with Web3Auth, developers must first create a Discord App via the [Discord Developer Portal](https://discord.com/developers/applications).

## Step 1: Create a Discord app[​](#step-1-create-a-discord-app "Direct link to Step 1: Create a Discord app")

1. Create a Discord [API application](https://discord.com/developers/applications).
2. Navigate to **OAuth2** from the sidebar, and paste the following as Redirect URI into the "Redirect URI" field.

  - <https://auth.web3auth.io/auth>  
![Discord OAuth2.0 App Dashboard](/img/embedded-wallets/authentication/discord/discord-redirect-uri.png)
3. Ensure you save your changes.
4. Copy the **Client ID** from here. We will use this in the Embedded Wallets dashboard.  
![Discord OAuth2.0 App Client ID and Secret](/img/embedded-wallets/authentication/discord/discord-clientid-secret.png)

## Step 2: Create a Discord connection[​](#step-2-create-a-discord-connection "Direct link to Step 2: Create a Discord connection")

Enable on dashboard

To use this feature, enable `Discord` from the Social Connections section in the [dashboard](https://developer.metamask.io).

By default, Web3Auth uses its own pre-configured credentials for Discord login.

![Toggle Discord Connection on Dashboard](/assets/images/authentication-social-connections-39836c31a54393f4387abf946cf59a2f.png) 

Follow these steps to create a Discord connection:

1. Visit the [dashboard](https://developer.metamask.io).
2. Go to the **Social Connections** section.
3. Click the **Settings** icon near the Discord connection.
4. Enter the `Auth Connection ID`.
5. Enter the `Discord Client ID`.
6. Click the **Add Connection** button to save the settings.
![Discord Connection](/assets/images/discord-connection-b26aafcf9d2271f92f81ac62153a173a.png) 

## Usage[​](#usage "Direct link to Usage")

Since the Discord connection details are available from the dashboard, developers don't need to pass any additional parameters to the `Web3AuthProvider`.

tip

Follow our [quickstart](/quickstart/?product=EMBEDDED%5FWALLETS&walletAggregatorOnly=NO&framework=REACT&stepIndex=0) to set up the basic flow.

### Log in with Discord[​](#log-in-with-discord "Direct link to Log in with Discord")

```
await connectTo(WALLET_CONNECTORS.AUTH, {
  authConnection: AUTH_CONNECTION.DISCORD,
  authConnectionId: 'w3a-discord-demo',
})

```
