fix(backend): get Google email via Gmail getProfile (no userinfo scope) + log callback errors
oauth2.userinfo.get() needed the email/openid scope we don't request, so the OAuth callback threw and redirected to ?google=error. Use gmail.users.getProfile (works with gmail.readonly) and log the callback error path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Repository | IZGD/legal-platform |
|---|---|
| Author | SW3xyz <alain@studioweb3.xyz> |
| Authored | |
| Parents | f97c2feb |
| Stats | 1 file changed , +8 , -4 |
| Part of | Google Workspace backend: OAuth, encrypted tokens, Gmail/Calendar, mail triage |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-9cb2f358.md
from inside the repo you want the change in.