View definition

(*AuthorizationsService).Check

Defined in github.com/google/go-github/github/authorizations.go

Description

Check if an OAuth token is valid for a specific app.

Note that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.

The returned Authorization.User field will be populated.

GitHub API docs: https://developer.github.com/v3/oauth_authorizations/#check-an-authorization

Check is referenced in 1 repository

github.com/google/go-github