# Discord Login

To enable Discord Auth for your project, you need to set up a Discord OAuth application and add the application credentials in the Openfort Dashboard.

## Overview

Setting up Discord logins for your application consists of 3 parts:

* Create and configure a Discord Project and App on the [Discord Developer Dashboard](https://discord.com/developers).
* Add your Discord API Key and API Secret Key to your [Openfort Project](https://dashboard.openfort.io/providers).
* Add the login code to your app. See [Add social login to your app](/docs/configuration/social-login#add-social-login-to-your-app) for React, React Native, JavaScript, and Swift.

### Configuration

**Access your Discord account**

* Go to [discord.com](https://discord.com/).

* Click on `Login` at the top right to log in.

* Once logged in, go to [discord.com/developers](https://discord.com/developers).

* callback URL: `https://api.openfort.io/iam/v2/auth/callback/discord`

**Create a Discord application**

* Click on `New Application` at the top right.
* Enter the name of your application and click `Create`.
* Click on `OAuth2` under `Settings` in the left side panel.
* Click `Add Redirect` under `Redirects`.
* Type or paste your `callback URL` into the `Redirects` box.
* Click `Save Changes` at the bottom.
* Copy your `Client ID` and `Client Secret` under `Client information`.

**Add your Discord credentials into your Openfort project**

<div align="center">
  <img width="70%" height="70%" src="https://www.openfort.io/images/blog/discordauth_72052f416b.png?updated_at=2024-06-25T13:37:20.731Z" alt="Discord Auth" />
</div>
