Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Types ¶
type DeviceCode ¶
type DeviceCode struct { DeviceCode string `json:"device_code"` UserCode string `json:"user_code"` VerificationURI string `json:"verification_uri"` VerificationURIComplete string `json:"verification_uri_complete"` ExpiresIn int64 `json:"expires_in"` Interval int64 `json:"interval"` }
func ReqDeviceCode ¶
func ReqDeviceCode() DeviceCode
func UnmarshalDeviceCode ¶
func UnmarshalDeviceCode(data []byte) (DeviceCode, error)
func (*DeviceCode) Marshal ¶
func (r *DeviceCode) Marshal() ([]byte, error)
type Error ¶
type Error struct { ErrorMessage string `json:"error"` ErrorDescription string `json:"error_description"` }
func UnmarshalErrorResponse ¶
type Token ¶
type Token struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` IDToken string `json:"id_token"` TokenType string `json:"token_type"` ExpiresIn int64 `json:"expires_in"` CreatedAt int64 `json:"created_at"` }
func ReqAuthToken ¶
func UnmarshalToken ¶
Click to show internal directories.
Click to hide internal directories.