Versions in this module Expand all Collapse all v1 v1.1.2 Jan 31, 2025 v1.1.1 Jan 30, 2025 Changes in this version + var ErrAuthorizationPending = errors.New("authorization pending") + type Client struct + func NewClient(host string) *Client + func (c *Client) CreateGrant(ctx context.Context) (*DeviceGrant, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) GetDeviceTokenResponse(ctx context.Context, dg *DeviceGrant) (*DeviceToken, error) + func (c *Client) RefreshToken(ctx context.Context, refreshToken string) (*DeviceToken, error) + type DeviceGrant struct + DeviceCode string + ExpiresIn int + Interval int + UserCode string + VerificationUri string + VerificationUriComplete string + type DeviceToken struct + AccessToken string + ExpiresIn int + RefreshToken string + TokenType string + type ErrorResponse struct + Error string + type GrantRequestBody struct + ClientID string + type RefreshTokenRequestBody struct + GrantType string + RefreshToken string + type TokenRequestBody struct + ClientID string + DeviceCode string + GrantType string