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).
GitHub
Section titled “GitHub”1. Create a GitHub OAuth App
Section titled “1. Create a GitHub OAuth App”- Go to github.com/settings/developers and click New OAuth App.
- 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
- Click Register application.
- Copy the Client ID and generate a Client Secret.
2. Set environment variables
Section titled “2. Set environment variables”GITHUB_CLIENT_ID=your-client-idGITHUB_CLIENT_SECRET=your-client-secret1. Create a Google OAuth Client
Section titled “1. Create a Google OAuth Client”- Open the Google Cloud Console and select or create a project.
- Go to APIs & Services → Credentials and click Create Credentials → OAuth client ID.
- Choose Web application as the application type.
- Under Authorized redirect URIs, add:
https://your-domain.com/auth/google/callback - Click Create and copy the Client ID and Client Secret.
2. Set environment variables
Section titled “2. Set environment variables”GOOGLE_CLIENT_ID=your-client-idGOOGLE_CLIENT_SECRET=your-client-secretCallback URL format
Section titled “Callback URL format”Both providers follow the same pattern:
| Provider | Callback URL |
|---|---|
| GitHub | https://your-domain.com/auth/github/callback |
https://your-domain.com/auth/google/callback |
your-domain.com must match the value you set in BASE_URL.