# How to access authenticated social token

**URL:** <https://community.auth0.com/t/how-to-access-authenticated-social-token/81781>\
**Category:** Get Help\
**Tags:** jwt, auth0\
**Created:** [April 14, 2022, 6:22pm UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781 "2022-04-14T18:22:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tedsky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tedsky/32/36603_2.png) [@Tedsky](https://community.auth0.com/u/Tedsky)\
**Post date:** [April 14, 2022, 6:22pm UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781/1 "2022-04-14T18:22:09Z")

</div>

Hello,

I’ve followed this tutorial [Build and Secure an Electron App - OpenID, OAuth, Node.js, and Express](https://auth0.com/blog/securing-electron-applications-with-openid-connect-and-oauth-2/#Call-a-Secure-API-within-Electron)

I’ve used GitHub to authenticate, and now I want to explore the logged-in user GitHub activity, but in order to do that I need the GitHub token.

Is it correct to call Auth0 Management API to do it?  
I’ve tried with the resources server, but even adding the permission required to get the current user identity, I am not able to.

Is there a better way to get the github token of the logged user?

Bear in mind that this is my ever experience with authentication.

Thank you

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 14, 2022, 7:37pm UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781/3 "2022-04-14T19:37:15Z")

</div>

Hi @Tedsky,

Welcome to the Auth0 Community!

I understand that you are looking to get an authenticated user’s Github Activity.

> [@Tedsky](#):
>
> I’ve used GitHub to authenticate, and now I want to explore the logged-in user GitHub activity, but in order to do that I need the GitHub token.
> 
> Is it correct to call Auth0 Management API to do it?

Firstly, to get the GitHub Token, please see [Authorizing OAuth apps - GitHub Docs](https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps) to learn more on how to get your app to access the GitHub API with the user’s access token.

In this case, you will not need to use the Auth0 Management API.

Please let me know if you have any further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![Tedsky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tedsky/32/36603_2.png) [@Tedsky](https://community.auth0.com/u/Tedsky)\
**Post date:** [April 19, 2022, 3:32pm UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781/4 "2022-04-19T15:32:06Z")

</div>

Hello @rueben.tiow,

Thank you for your answer.  
Help me understand, this means that, after I log in using auth0, in order to access GitHub API, I need to authenticate with Github separately?

Thank you

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 20, 2022, 4:12pm UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781/6 "2022-04-20T16:12:25Z")

</div>

Hi @Tedsky,

Thank you for your response.

> [@Tedsky](#):
>
> Help me understand, this means that, after I log in using auth0, in order to access GitHub API, I need to authenticate with Github separately?

That will not be necessary. Once the user authenticates onto your application using Github, the access token granted can be used to call the API of the third-party provider that issued them.

Please see [Identity Provider Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/identity-provider-access-tokens) to learn more.

Thank you.

---

<div class="post-metadata">

**Author:** ![Tedsky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tedsky/32/36603_2.png) [@Tedsky](https://community.auth0.com/u/Tedsky)\
**Post date:** [April 21, 2022, 9:20am UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781/7 "2022-04-21T09:20:02Z")

</div>

Hello @rueben.tiow

I will take a look and let you know,

thank you for your patience!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 6:12pm UTC](https://community.auth0.com/t/how-to-access-authenticated-social-token/81781/8 "2022-12-21T18:12:43Z")

</div>


