auth

package
v0.0.0-...-03eacf6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser struct {
	Type    BrowserType
	Path    string
	Name    string
	Version string
}

func (Browser) String

func (b Browser) String() string

type BrowserAuth

type BrowserAuth struct {
	// contains filtered or unexported fields
}

func New

func New(debug bool) *BrowserAuth

func (*BrowserAuth) GetAuth

func (ba *BrowserAuth) GetAuth(opts ...Option) (token, cookies string, err error)

type BrowserType

type BrowserType int
const (
	BrowserUnknown BrowserType = iota
	BrowserChrome
	BrowserSafari
)

type Option

type Option func(*Options)

func WithProfileName

func WithProfileName(p string) Option

type Options

type Options struct {
	ProfileName string
}

Jump to

Keyboard shortcuts

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