← Back to list

fix-google-auth
by canyouseeus
THE LOST+UNFOUNDS - Modern web application
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: fix-google-auth description: Diagnose and resolve Google OAuth 'server_error' caused by credential mismatches.
Fix Google Auth Mismatch
If you encounter server_error: Unable to exchange external code during Google Sign-In, it is 99% likely due to a Client Secret Mismatch between your local environment (.env.local) and the Supabase Dashboard.
This usually happens after:
- Running
setup-google-oauth.ts(which may create a new secret). - Rotated keys in Google Cloud Console.
Resolution Steps
1. Update Local Credentials
Run the helper script to securely update your local .env.local file with the correct Google Client Secret.
cd /Users/thelostunfounds/.gemini/antigravity/scratch/thelostandunfounds
npx tsx scripts/update-google-secret.ts
This script will prompt you to paste the secret (input is hidden) and save it correctly.
2. Update Supabase Dashboard
CRITICAL: Updating locally is not enough. You must sync Supabase.
- Copy the SAME secret you just used.
- Go to Supabase Dashboard > Auth > Providers > Google.
- Paste the secret into the Client Secret field.
- Click Save.
3. Verification
- Restart the dev server:
npm run dev - Attempt login at
http://localhost:3000.
Scripts
scripts/update-google-secret.ts: Utility to update.env.localsecurely.
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon