auth

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthApiToken

func GetAuthApiToken() (string, error)

func SaveAuth

func SaveAuth(auth *Auth) error

Types

type Auth

type Auth struct {
	ApiToken   string    `json:"apiToken"`
	Expiration time.Time `json:"expirationTime"`
}

func AuthenticateWithPassword

func AuthenticateWithPassword(email, password string) (*Auth, error)

func GetAuth

func GetAuth() (*Auth, error)

Jump to

Keyboard shortcuts

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