# Access Github API after authorizing user

**URL:** <https://community.auth0.com/t/access-github-api-after-authorizing-user/36174>\
**Category:** Get Help\
**Tags:** github\
**Created:** [January 12, 2020, 6:43pm UTC](https://community.auth0.com/t/access-github-api-after-authorizing-user/36174 "2020-01-12T18:43:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miz85](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/miz85/32/18445_2.png) [@Miz85](https://community.auth0.com/u/Miz85)\
**Post date:** [January 12, 2020, 6:43pm UTC](https://community.auth0.com/t/access-github-api-after-authorizing-user/36174/1 "2020-01-12T18:43:41Z")

</div>

Hi there!

I’m trying to setup social login using Github as an identity provider which works great. [In the guide](https://auth0.com/docs/connections/social/github#5-access-github-api) it says that Github returns an access token that can be used to query their API, however when I try to use that access token I end up getting a `Bad Credentials` error from their API.

I was just wondering if there were several ones and how to find the right one to use in this case.

Thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 13, 2020, 10:27pm UTC](https://community.auth0.com/t/access-github-api-after-authorizing-user/36174/3 "2020-01-13T22:27:29Z")

</div>

Hi @Miz85,

This article covers Idp access tokens.

> **[Identity Provider Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/identity-provider-access-tokens)**
>
> Understand third-party access tokens issued by identity providers after user authentication and how to use them to call the third-party APIs.

Let me know if you need anything else!

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 28, 2020, 2:27am UTC](https://community.auth0.com/t/access-github-api-after-authorizing-user/36174/4 "2020-01-28T02:27:32Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
