Skip to main content

Module token

Module token 

Source
Expand description

POST /login/oauth/access_token: its requests and what its answers mean. GitHub answers OAuth errors with status 200 and an error field.

Structs§

Granted
A token and the scopes GitHub granted with it.

Enums§

Reply
One answer of the token endpoint.

Constants§

TOKEN_PATH
The token endpoint’s path under the OAuth base.

Functions§

check_scopes
An error naming the missing scopes, if any.
failure
The error an error code stands for.
missing_scopes
The required scopes granted lacks.
parse_reply
What a token-endpoint body says.
scopes
The scopes in GitHub’s comma- or space-separated scope value.