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

fix: User Image returned from auth provider #126

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

AhmedBaset
Copy link
Contributor

Github auth provider doesn't return back a picture prop like Google. instead, it returns avatar_url.

Here is an instance of the data returned
{
  "login": "A7med3bdulBaset",
  "id": 000000,
  "node_id": "00000000000000000",
  "avatar_url": "https://avatars.githubusercontent.com/u/82659015?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/A7med3bdulBaset",
  "html_url": "https://github.com/A7med3bdulBaset",
  "followers_url": "https://api.github.com/users/A7med3bdulBaset/followers",
  "following_url": "https://api.github.com/users/A7med3bdulBaset/following{/other_user}",
  "gists_url": "https://api.github.com/users/A7med3bdulBaset/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/A7med3bdulBaset/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/A7med3bdulBaset/subscriptions",
  "organizations_url": "https://api.github.com/users/A7med3bdulBaset/orgs",
  "repos_url": "https://api.github.com/users/A7med3bdulBaset/repos",
  "events_url": "https://api.github.com/users/A7med3bdulBaset/events{/privacy}",
  "received_events_url": "https://api.github.com/users/A7med3bdulBaset/received_events",
  "type": "User",
  "site_admin": false,
  "name": "Ahmed Abdelbaset",
  "company": null,
  "blog": "",
  "location": "Egypt",
  "email": "A7med3bdulBaset@gmail.com",
  "hireable": true,
  "bio": "Learn new things every day!",
  "twitter_username": "A7med3bdulBaset",
  "public_repos": 37,
  "public_gists": 0,
  "followers": 173,
  "following": 86,
  "created_at": "2021-04-16T12:58:21Z",
  "updated_at": "2023-07-22T23:11:08Z",
  "private_gists": 1,
  "total_private_repos": 12,
  "owned_private_repos": 12,
  "disk_usage": 464381,
  "collaborators": 1,
  "two_factor_authentication": false,
  "plan": {
    "name": "pro",
    "space": 0000000,
    "collaborators": 0,
    "private_repos": 9999
  }
}

@vercel
Copy link

vercel bot commented Aug 6, 2023

@A7med3bdulBaset is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@jaredpalmer jaredpalmer merged commit 6149632 into vercel:main Aug 27, 2023
1 check failed
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.

None yet

2 participants