Skip to content

Files

23 lines (16 loc) · 675 Bytes

getAuthenticated.md

File metadata and controls

23 lines (16 loc) · 675 Bytes
name example route scope type
Get the authenticated user
octokit.rest.users.getAuthenticated()
GET /user
users
API method

Get the authenticated user

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();

Parameters

This endpoint has no parameters

See also: GitHub Developer Guide documentation.