If I sign in with github as provider. How can I ha...
# help
c
If I sign in with github as provider. How can I handle getting user info like username, avatar profile picture, etc, based on the user that signed in. On my authentication dashboard, I only see the email, and a supabase generated UID from that user, so confused how I would at least be able to use that info to do a separate fetch to github api
s
You can get this information form the
user_metadata
Copy code
js
const user = supabase.auth.user();
const avatarURL = user.user_metadata?.avatar_url;
c
oh nice, that works, thank you!