utils

package
v0.0.0-...-32b0c39 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDigitCode

func GenerateDigitCode(max int) string

func GeneratePassword

func GeneratePassword() string

func GenerateRandomName

func GenerateRandomName() string

func RemoveAuth

func RemoveAuth() error

func RetrieveAuth

func RetrieveAuth() (credentials *definitions.Credentials, err error)

func StoreAuth

func StoreAuth(credentials *definitions.Credentials)

Types

type CognitoHelper

type CognitoHelper struct {
	// contains filtered or unexported fields
}

func (CognitoHelper) AuthenticateDevice

func (cog CognitoHelper) AuthenticateDevice(email, accessToken, deviceKey, deviceGroup *string)

func (CognitoHelper) CheckUserExists

func (cog CognitoHelper) CheckUserExists(email string) bool

func (CognitoHelper) CreateUser

func (cog CognitoHelper) CreateUser(email string)

func (CognitoHelper) IsTokenExpired

func (cog CognitoHelper) IsTokenExpired() bool

func (CognitoHelper) Login

func (CognitoHelper) RefreshToken

func (cog CognitoHelper) RefreshToken()

func (CognitoHelper) VerifyLogin

type Key

type Key struct {
	Alg string `json:"alg"`
	E   string `json:"e"`
	Kid string `json:"kid"`
	Kty string `json:"kty"`
	N   string `json:"n"`
	Use string `json:"use"`
}

Jump to

Keyboard shortcuts

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