Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearToken ¶
func ClearToken() error
func GetCacheDir ¶
func GetCacheDir() string
func GetTokenPath ¶
func GetTokenPath() string
func SaveToken ¶
func SaveToken(cache *TokenCache) error
Types ¶
type TokenCache ¶
type TokenCache struct {
UnscopedToken string `json:"unscoped_token"`
IDToken string `json:"id_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt time.Time `json:"expires_at"`
Domain string `json:"domain"`
Region string `json:"region"`
}
func LoadToken ¶
func LoadToken() (*TokenCache, error)
Click to show internal directories.
Click to hide internal directories.