auth

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthenticatedClient

func GetAuthenticatedClient(ctx context.Context, ts *TokenStorage, cfg *config.Config) (*http.Client, error)

GetAuthenticatedClient configures and returns an HTTP client with OAuth2 tokens. It handles the entire flow: loading, refreshing, and fetching new tokens.

Types

type TokenStorage

type TokenStorage struct {
	Token     any    `json:"token"`
	ProjectID string `json:"project_id"`
	Email     string `json:"email"`
	Auto      bool   `json:"auto"`
	Checked   bool   `json:"checked"`
}

Jump to

Keyboard shortcuts

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