command

package
v0.0.0-...-db4ded5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(remote *internal.ForgeClient) (*internal.AuthCred, error)

func RefreshToken

func RefreshToken(host string, refreshToken string) *internal.AuthCred

func ShouldRefresh

func ShouldRefresh(accessToken string) bool

Types

type AuthConfig

type AuthConfig struct {
	AppID          string `json:"app_id"`
	AppTokenURI    string `json:"app_token_uri"`
	AppRedirectURI string `json:"app_redirect_uri"`
}

Jump to

Keyboard shortcuts

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