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
errorcode stands for. - missing_
scopes - The required scopes
grantedlacks. - parse_
reply - What a token-endpoint body says.
- scopes
- The scopes in GitHub’s comma- or space-separated
scopevalue.