package
0.0.0-20241212133632-bf86e9aaa01b
Repository: https://github.com/webdevfuel/projectmotor.git
Documentation: pkg.go.dev
# Functions
NewGitHubOAuth2 returns a new GitHubOAuth2 with the given access token.
# Variables
Config is a oauth2 configuration with a client id, client secret, scopes and endpoint.
# Structs
Data is a representation of a user's GitHub account.
Email is a representation of data returned from the GitHub API when making a GET request to "https://api.github.com/user/emails".
GitHubOAuth2 is a wrapper around a GitHub OAuth access token.
User is a representation of data returned from the GitHub API when making a GET request to "https://api.github.com/user".