name | example | route | scope | type |
---|---|---|---|---|
Get the authenticated user |
octokit.rest.users.getAuthenticated() |
GET /user |
users |
API method |
If the authenticated user is authenticated with an OAuth token with the user
scope, then the response lists public and private profile information.
If the authenticated user is authenticated through OAuth without the user
scope, then the response lists only public profile information.
octokit.rest.users.getAuthenticated();
This endpoint has no parameters
See also: GitHub Developer Guide documentation.