auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptForAuthentication

func PromptForAuthentication() error

PromptForAuthentication prompts the user for their credentials

func RemoveCredentials

func RemoveCredentials() error

RemoveCredentials deletes the credentials file

func SaveCredentials

func SaveCredentials(creds Credentials) error

SaveCredentials stores user credentials to the config file

Types

type Credentials

type Credentials struct {
	Email       string `json:"email"`
	AppPassword string `json:"app_password"`
	Name        string `json:"name"`
}

Credentials stores user authentication information

func LoadUser

func LoadUser() (Credentials, error)

LoadCredentials reads user credentials from the config file

Jump to

Keyboard shortcuts

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