Skip to content

fix: handle missing picture claim in google oauth login#567

Merged
santosral merged 1 commit into
mainfrom
fix/google-auth-login
May 12, 2026
Merged

fix: handle missing picture claim in google oauth login#567
santosral merged 1 commit into
mainfrom
fix/google-auth-login

Conversation

@santosral
Copy link
Copy Markdown
Collaborator

🚀 Summary

This PR fixes Google OAuth login failures when the ID token omits the picture claim by making the avatar URL nullable.

✏️ Changes

  • Make avatar_url nullable in the users table
  • Accept null picture in verifyIdToken
  • Add Avatar component that falls back to the user's initial
  • Use Avatar in protected layout and profile pages

@santosral santosral self-assigned this May 12, 2026
@santosral santosral requested a review from nicholasjjlim May 12, 2026 04:01
@santosral santosral merged commit 4cdb948 into main May 12, 2026
8 checks passed
@santosral santosral deleted the fix/google-auth-login branch May 12, 2026 05:09
@santosral santosral mentioned this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants