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/theauth.ts

Scopes

Default scopes: identify email. Scopes you pass are added on top of the defaults.

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.

OAuth overview

Generic OAuth 2.0 setup and account linking behavior.

Slack

Sign in with Slack using OpenID Connect.

GitHub

Another developer-focused OAuth provider.

Authentication overview

All sign-in methods available in theAuth.
Last modified on October 7, 2026