Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get photo/avatar in the UserMetadata struct #12

Closed
clearlysid opened this issue Jan 1, 2025 · 2 comments
Closed

Get photo/avatar in the UserMetadata struct #12

clearlysid opened this issue Jan 1, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@clearlysid
Copy link
Contributor

clearlysid commented Jan 1, 2025

Feature request

Some OAuth providers (eg: Google) return a link to the avatar/photo as part of the UserMetadata. We should allow access to it in this struct.

Is your feature request related to a problem? Please describe.

Yes, I'd like to show a user's avatar in my app if it is available, but don't have a way to access it currently. Google provides a link to the avatar within the raw_user_meta_data. Possible that other providers do it too.
Screenshot 2025-01-01 at 3 05 13 PM

I think adding a Deserializable avatar_url and picture fields will suffice to extract it? Happy to PR if needed!

@clearlysid clearlysid added the enhancement New feature or request label Jan 1, 2025
@clearlysid
Copy link
Contributor Author

#13 should solve this I think.

@Proziam
Copy link
Collaborator

Proziam commented Jan 6, 2025

Merged #13, thanks for the contribution!

@Proziam Proziam closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants