Octokit hides the full details we can get from this endpoint, but we can inspect the full response and check a token's rate limit for both REST and GraphQL from the same request.
This means we don't have to involve both APIs just for checking if a token can be used, and cut down some code paths.
Octokit hides the full details we can get from this endpoint, but we can inspect the full response and check a token's rate limit for both REST and GraphQL from the same request.
This means we don't have to involve both APIs just for checking if a token can be used, and cut down some code paths.