Versions in this module Expand all Collapse all v0 v0.2.0 Oct 25, 2026 v0.1.0 Oct 18, 2026 Changes in this version + var ErrAccessDenied = errors.New("device: access denied") + var ErrServer = errors.New("device: authorization server request failed") + type Authorization struct + DeviceCode authoidc.Secret + ExpiresAt time.Time + Interval time.Duration + UserCode string + VerificationURI string + VerificationURIComplete string + type Client struct + func New(ctx context.Context, options Options) (*Client, error) + func (c *Client) Poll(ctx context.Context, authorization Authorization) (*oauth2.Token, string, error) + func (c *Client) Start(ctx context.Context) (Authorization, error) + type Error struct + Code string + StatusCode int + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Options struct + ClientID string + ClientSecret string + DeviceAuthURL string + HTTPClient *http.Client + Issuer string + Scopes []string + TokenURL string