docs/self-hosting/auth/providers/google.mdx
email and profileAdd to authorized redirect URIs:
<Callout type={'info'}> Callback URL format:
- Local development: `http://localhost:3210/api/auth/callback/google`
- Production: `https://your-domain.com/api/auth/callback/google`
| Environment Variable | Type | Description |
|---|---|---|
AUTH_SECRET | Required | Session encryption key, generate with openssl rand -base64 32 |
AUTH_SSO_PROVIDERS | Required | Set to google |
AUTH_GOOGLE_ID | Required | Client ID from Google Cloud Console |
AUTH_GOOGLE_SECRET | Required | Client Secret from Google Cloud Console |
<Callout type={'tip'}> Go to 📘 Environment Variables for detailed information. </Callout> </Steps>
<Callout type={'info'}> After successful deployment, users will be able to authenticate with Google and use LobeHub. </Callout>
Ensure the callback URL configured in Google Cloud Console exactly matches your deployment address, including the protocol (http/https) and port number.
If the OAuth consent screen is in testing mode, only Google accounts added as test users can sign in.