Skip to content

OAuth Setup

Quipthread supports GitHub and Google as OAuth providers. You can enable one, both, or neither. If neither is configured, only email auth is available (and only when EMAIL_AUTH_ENABLED=true).

  1. Go to github.com/settings/developers and click New OAuth App.
  2. Fill in the form:
    • Application name: anything (e.g. “Quipthread Comments”)
    • Homepage URL: your site URL
    • Authorization callback URL: https://your-domain.com/auth/github/callback
  3. Click Register application.
  4. Copy the Client ID and generate a Client Secret.
Terminal window
GITHUB_CLIENT_ID=your-client-id
GITHUB_CLIENT_SECRET=your-client-secret
  1. Open the Google Cloud Console and select or create a project.
  2. Go to APIs & Services → Credentials and click Create Credentials → OAuth client ID.
  3. Choose Web application as the application type.
  4. Under Authorized redirect URIs, add: https://your-domain.com/auth/google/callback
  5. Click Create and copy the Client ID and Client Secret.
Terminal window
GOOGLE_CLIENT_ID=your-client-id
GOOGLE_CLIENT_SECRET=your-client-secret

Both providers follow the same pattern:

ProviderCallback URL
GitHubhttps://your-domain.com/auth/github/callback
Googlehttps://your-domain.com/auth/google/callback

your-domain.com must match the value you set in BASE_URL.