authconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

func Path

func Path() string

func Save

func Save(cfg *Config) error

Types

type Config

type Config struct {
	OAuth    *OAuthData `yaml:"oauth,omitempty"`
	ClientID string     `yaml:"client_id,omitempty"`
	Scopes   []string   `yaml:"scopes,omitempty"`
}

func Load

func Load() (*Config, error)

type OAuthData

type OAuthData struct {
	AccessToken  string    `yaml:"access_token"`
	RefreshToken string    `yaml:"refresh_token"`
	ExpiresAt    time.Time `yaml:"expires_at"`
	TokenType    string    `yaml:"token_type"`
}

Jump to

Keyboard shortcuts

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