Integrate Discord Login

This guide will cover how to set up your Discord Login for custom authentication provider.

Setup Discord OAuth

  1. Login to Discord Developer Portal and create a new application.

  2. Copy the Client ID and Client Secret from the Client information section.

  3. Under the OAuth2 tab, add the redirect URL, https://web3.meshjs.dev/api/auth to the Redirects section.

  4. Save the changes.

Configure Authentication Provider

  1. Under the project settings, navigate to the Authentication section.

  2. Select Discord from the list of providers.

  3. Fill in the Client ID and Client Secret fields with the values from the Discord Developer Portal.

  4. Toggle the Enable switch to enable Discord Login.

  5. Click on the Save changes button.

alt text

Test Discord Login

  1. Go to your application and connect wallet.

  2. Click on the Login with Discord button.

  3. You will be redirected to the Discord login page.

  4. Login with your Discord credentials.

  5. You will be redirected back to your application.

  6. You have successfully integrated Discord Login with your application.