auth

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrowserLoginProfileDir

func BrowserLoginProfileDir() string

func ClearBrowserLoginProfile

func ClearBrowserLoginProfile() error

func ClearCookieToken

func ClearCookieToken() error

func CookiePath

func CookiePath() string

func CookieStatus

func CookieStatus() map[string]any

func DefaultBrowserProfileDir

func DefaultBrowserProfileDir() string

func NormalizeCookieToken

func NormalizeCookieToken(input string) (string, error)

func RedactToken

func RedactToken(token string) string

Types

type BrowserLoginResult

type BrowserLoginResult struct {
	Token   string `json:"token"`
	Domain  string `json:"domain"`
	Expires any    `json:"expires,omitempty"`
}

func CaptureCookieWithBrowser

func CaptureCookieWithBrowser(ctx context.Context, timeout time.Duration) (*BrowserLoginResult, error)

type CookieToken

type CookieToken struct {
	Token   string `json:"token"`
	SavedAt int64  `json:"saved_at"`
}

func LoadCookieToken

func LoadCookieToken() (*CookieToken, error)

func SaveCookieToken

func SaveCookieToken(token string) (*CookieToken, error)

Jump to

Keyboard shortcuts

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