auth

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	Token
	// contains filtered or unexported fields
}

func NewAuthenticator

func NewAuthenticator() (*Authenticator, error)

func (*Authenticator) Login

func (a *Authenticator) Login(c context.Context) error

func (*Authenticator) Logout

func (a *Authenticator) Logout() error

func (*Authenticator) TryExistingAuth

func (a *Authenticator) TryExistingAuth(ctx context.Context) error

type Token

type Token struct {
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
	Email        string    `json:"email"`
	ExpiresAt    time.Time `json:"expires_at"`
}

Jump to

Keyboard shortcuts

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