Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteToken ¶
func DeleteToken() error
DeleteToken removes the GitHub OAuth token from the system keyring.
Types ¶
type DeviceCodeResponse ¶
type DeviceCodeResponse 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"`
}
DeviceCodeResponse represents the response from GitHub's device code request.
func RequestDeviceCode ¶
func RequestDeviceCode(ctx context.Context, clientID string) (*DeviceCodeResponse, error)
RequestDeviceCode requests a device code from GitHub.
Click to show internal directories.
Click to hide internal directories.