Get the authenticated user

February 22, 2024 ยท View on GitHub

OAuth app tokens and personal access tokens (classic) need the user scope in order for the response to include private profile information.

octokit.rest.users.getAuthenticated();

Parameters

This endpoint has no parameters

See also: GitHub Developer Guide documentation.