Skip to main content

Get credentials

1

Create an application

Go to the Discord Developer Portal and click New Application. Give it a name.
2

Add a redirect URI

Navigate to OAuth2 > General. Under Redirects, add:
3

Copy credentials

From OAuth2 > General, copy the Client ID and Client Secret.

Configuration

lib/kavach.ts

Scopes

Default scopes: identify email

User data returned

Discord email addresses are verified before the account can use OAuth. You will always receive a verified email when the email scope is requested.
Last modified on April 29, 2026