auth

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logout

func Logout(logger logger.Logger, baseUrl string, authToken string) error

Logout will open a browser and wait for the application to logout.

Types

type LoginResult

type LoginResult struct {
	APIKey string
	UserId string
}

func Login

func Login(logger logger.Logger, baseUrl string) (*LoginResult, error)

Login will open a browser and wait for the user to login. It will return the token if the user logs in successfully. It will return an error if the user cancels the login or if the login fails. If the user cancels the login or after a period of 1 minute, the login will fail and return an ErrTimeout error.

Jump to

Keyboard shortcuts

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