auth

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceCodeLogin

func DeviceCodeLogin(devMode bool) error

func GetAuthFile

func GetAuthFile() string

func PersonalAccessTokenLogin

func PersonalAccessTokenLogin(personalAccessToken string) error

func ReadAuthToken

func ReadAuthToken() (string, error)

func RemovePersistedAuthToken

func RemovePersistedAuthToken() error

Types

type CustomAuthTokenWrapper

type CustomAuthTokenWrapper struct {
	AuthToken string `json:"authToken"`
}

type DeviceCodeCreationResult

type DeviceCodeCreationResult struct {
	DeviceCode string `json:"deviceCode"`
}

type DeviceCodeStatusResult

type DeviceCodeStatusResult struct {
	Confirmed bool   `json:"confirmed"`
	AuthToken string `json:"authToken"`
}

type FirebaseResponse

type FirebaseResponse struct {
	IdToken string `json:"idToken"`
}

Jump to

Keyboard shortcuts

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