Documentation
¶
Overview ¶
Package github is the GitHub API client of the GitHub sign-in method: the profile of the signed-in user and their verified email address.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetPrimaryEmail ¶
GetPrimaryEmail fetches the primary verified email from the GitHub emails API, falling back to any verified one.
func (*Client) GetUserInfo ¶
GetUserInfo fetches the user profile from the GitHub API using the access token. The profile email carries no verification metadata, so the email returned is the primary verified one from the emails API, or empty. The requests are bound to ctx, which carries the caller's deadline.
Click to show internal directories.
Click to hide internal directories.