BetterStarter logo
BetterStarter
Docs
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

  1. Go to Reddit App Preferences and click Create App (or Create Another App)
  2. 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)
  3. Click Create app
  4. 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-secret

3. Enable in Config

In src/appConfig.ts set:

reddit: { enabled: true },

4. Test

  1. Run pnpm dev
  2. Navigate to /auth/sign-in
  3. 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_ID and REDDIT_CLIENT_SECRET are set and reddit.enabled is true

On this page