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
Click to show internal directories.
Click to hide internal directories.