{"modulePath":"github.com/OutOfStack/game-library-auth","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubapi\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient represents GitHub OAuth API client\n\n```go\nfunc NewClient(cfg Config) *Client\n```\nNewClient creates a new GitHub OAuth client\n\n```go\nfunc (c *Client) ExchangeCodeForUser(ctx context.Context, code string) (UserInfo, error)\n```\nExchangeCodeForUser exchanges an authorization code for user info\n\n```go\ntype Config struct {\n\tClientID     string\n\tClientSecret string\n\tTimeout      time.Duration\n}\n```\nConfig represents GitHub OAuth client configuration\n\n```go\ntype UserInfo struct {\n\tID            string\n\tLogin         string\n\tEmail         string\n\tEmailVerified bool\n}\n```\nUserInfo represents GitHub user information\n\n","path":"github.com/OutOfStack/game-library-auth/internal/client/githubapi","name":"githubapi","synopsis":"","isRedistributable":true}
