GuidesAuth Providers
Reddit Auth
Add Reddit OAuth sign-in to your app.
Docs are in beta — content is improving rapidly. Found something missing? Open an issue on GitHub or reach out on Twitter (X).
1. Create a Reddit App
- Go to Reddit App Preferences and click Create App (or Create Another App)
- Fill in:
- Name — your app name
- Type — select web app
- redirect uri:
http://localhost:3000/api/auth/callback/reddit(dev)https://yourdomain.com/api/auth/callback/reddit(prod)
- Click Create app
- Copy the Client ID (shown under the app name, below "personal use script") and the Secret
2. Set Environment Variables
# .env.local
REDDIT_CLIENT_ID=your-client-id
REDDIT_CLIENT_SECRET=your-client-secret3. Enable in Config
In src/appConfig.ts set:
reddit: { enabled: true },4. Test
- Run
pnpm dev - Navigate to
/auth/sign-in - A Sign in with Reddit button will appear
Production Checklist
- Reddit OAuth apps don't require approval for basic sign-in; just ensure redirect URIs are set correctly
Troubleshooting
invalid_grant— the redirect URI must exactly match the one registered in Reddit's app settings- No Reddit button — check
REDDIT_CLIENT_IDandREDDIT_CLIENT_SECRETare set andreddit.enabledistrue