Get credentials
Create an application
Go to the Auth0 dashboard and create a Regular Web Application.Set the Allowed Callback URL to:Copy your credentials
From the application settings, copy the Domain, Client ID, and Client Secret.Your domain looks likeyour-tenant.auth0.com.Configuration
lib/kavach.ts
Scopes
Default scopes:openid, profile, email
| Scope | What it unlocks |
|---|---|
openid | OIDC authentication, issues ID token |
profile | Name, picture, and profile metadata |
email | Email address and verification status |
offline_access | Refresh token support |
Auth0 supports custom scopes and roles via the Management API. Standard OIDC scopes work out of the box.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /auth/oauth/authorize/auth0 | Redirect to Auth0 |
| GET | /auth/oauth/callback/auth0 | Handle callback |