Integrate Discord Login
This guide will cover how to set up your Discord Login for custom authentication provider.
Setup Discord OAuth
-
Login to Discord Developer Portal and create a new application.
-
Copy the
Client ID
andClient Secret
from the Client information section. -
Under the OAuth2 tab, add the redirect URL,
https://web3.meshjs.dev/api/auth
to the Redirects section. -
Save the changes.
Configure Authentication Provider
-
Under the project settings, navigate to the Authentication section.
-
Select Discord from the list of providers.
-
Fill in the
Client ID
andClient Secret
fields with the values from the Discord Developer Portal. -
Toggle the Enable switch to enable Discord Login.
-
Click on the Save changes button.
Test Discord Login
-
Go to your application and connect wallet.
-
Click on the Login with Discord button.
-
You will be redirected to the Discord login page.
-
Login with your Discord credentials.
-
You will be redirected back to your application.
-
You have successfully integrated Discord Login with your application.