Documentation
¶
Overview ¶
Package oauth speaks the minimal GitHub OAuth web flow needed by the panel: build the consent URL, exchange the code, fetch the primary verified email. No third-party SDK — the surface is tiny enough that stdlib + a couple of struct types is simpler than golang.org/x/oauth2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitHubAuthURL ¶
GitHubAuthURL builds the GitHub OAuth consent URL.
func GitHubExchange ¶
func GitHubExchange(ctx context.Context, a ExchangeArgs) (string, error)
GitHubExchange swaps the OAuth `code` for an access token.
Types ¶
Click to show internal directories.
Click to hide internal directories.