auth

package
v1.0.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAuthUrl

func OpenAuthUrl(params *cmdTypes.UrlParams) error

Types

type FetchAuthTokenParams added in v1.0.60

type FetchAuthTokenParams struct {
	AuthCode     string
	RedirectURI  string
	RefreshToken string
}

type FetchTokenResponse added in v1.0.60

type FetchTokenResponse struct {
	AccessToken  string
	RefreshToken string
	ExpiresIn    uint
}

func FetchAuthToken

func FetchAuthToken(cfg *config.Config, params *FetchAuthTokenParams) (*FetchTokenResponse, error)

type TokenResponse added in v1.0.60

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    uint   `json:"expires_in"`
	TokenType    string `json:"token_type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL