Get credentials
1
Create an app
Go to Reddit App Preferences and scroll to the bottom. Click Create another app…. Select web app as the type and add your redirect URI:2
Copy credentials
After saving, the client ID appears directly under the app name (a short string likeabc123XYZ). Click edit to reveal or regenerate the secret.Configuration
lib/kavach.ts
Endpoints
Scopes
Default scope:identity
User data returned
Reddit’s token endpoint uses HTTP Basic authentication rather than posting credentials in the request body. KavachOS handles this automatically.
Handling missing email
Since Reddit provides no email, check for it in your callback handler before creating a user account:app/api/auth/[...]/route.ts