auth

package
v1.58.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoLogin

func DoLogin(flow Flow) (err error)

func DoLoginWithAuthKey

func DoLoginWithAuthKey() error

func DoLogout

func DoLogout()

func LoginWithAuthKey added in v1.58.3

func LoginWithAuthKey(key string) error

LoginWithAuthKey exchanges the given auth key for credentials and persists them.

func LoginWithEnvKeyIfNeeded added in v1.58.3

func LoginWithEnvKeyIfNeeded()

LoginWithEnvKeyIfNeeded logs in using the ENCORE_AUTH_KEY environment variable when it is set and no user is currently logged in. This gives agents and CI a non-interactive way to authenticate, avoiding the browser-based login flow.

func Whoami

func Whoami()

Types

type Flow added in v1.21.1

type Flow int
const (
	AutoFlow Flow = iota
	Interactive
	DeviceAuth
)

Jump to

Keyboard shortcuts

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