Documentation
¶
Overview ¶
Package auth provides GitHub OAuth authentication via Device Code flow. Tokens are stored in the OS keychain (macOS/Windows) or file-based storage (Linux/WSL).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAuthenticated = errors.New("not authenticated")
ErrNotAuthenticated indicates no stored authentication token was found.
Functions ¶
Types ¶
type DeviceCode ¶
type DeviceCode struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`
VerificationURI string `json:"verification_uri"`
ExpiresIn int `json:"expires_in"`
Interval int `json:"interval"`
}
DeviceCode represents the response from GitHub's device code request.
Click to show internal directories.
Click to hide internal directories.