Documentation
¶
Index ¶
Constants ¶
View Source
const GrantType = "urn:ietf:params:oauth:grant-type:device_code"
Variables ¶
View Source
var ( // ErrAccessDenied is returned when the user denies the app access to their account. ErrAccessDenied = errors.New("access denied by user") )
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
*Config
}
func NewAuthorizer ¶
func NewAuthorizer(config *Config) *Authorizer
func (*Authorizer) RequestCode ¶
func (a *Authorizer) RequestCode(ctx context.Context) (Code, error)
func (*Authorizer) WaitForAuthorization ¶
Click to show internal directories.
Click to hide internal directories.