Follow these step-by-step instructions to enable Google sign-in for regular users.
BIDigest OAuthBIDigesthi@bidigest.comhi@bidigest.comemail, profile, openidBIDigest Web Clienthttp://localhost:3000 https://bidigest.com https://www.bidigest.com
http://localhost:3000/api/auth/callback/google https://bidigest.com/api/auth/callback/google https://www.bidigest.com/api/auth/callback/google
Add these to your .env.local (development) and Vercel (production):
# Google OAuth GOOGLE_CLIENT_ID=your-client-id-here.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=your-client-secret-here NEXT_PUBLIC_GOOGLE_ENABLED=true
For Vercel:
npm run devhttp://localhost:3000/loginImportant: In Testing mode, only test users can sign in.
To allow all users:
"Error 400: redirect_uri_mismatch"
Check that redirect URI in Google Console matches exactly: /api/auth/callback/google. Include both http://localhost:3000 and production URLs.
"Access blocked: This app's request is invalid"
App is in Testing mode → Add user as test user, or publish the app (Step 6).
Button not showing
Check NEXT_PUBLIC_GOOGLE_ENABLED=true is set. Restart dev server after adding env vars.
"Invalid client"
Verify GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are correct. No extra spaces or quotes.
.env.local to git