Github API: find username using accesstoken


I am stuck: I manage to get users to log in to my app using github. I get an access token. But once I have reached that stage, how do I retrieve info about that user? Most requests require a username… which I don’t have.

It seems dumb since I have an access token, and I am probably missing something. Could someone tell me what it is?

What’s the correct endpoint to find a username? Should I use curl?


-jj. :slight_smile:

Assuming you’re using their v3 API:


As described at