Documentation
¶
Index ¶
- func GenerateDigitCode(max int) string
- func GeneratePassword() string
- func GenerateRandomName() string
- func RemoveAuth() error
- func RetrieveAuth() (credentials *definitions.Credentials, err error)
- func StoreAuth(credentials *definitions.Credentials)
- type CognitoHelper
- func (cog CognitoHelper) AuthenticateDevice(email, accessToken, deviceKey, deviceGroup *string)
- func (cog CognitoHelper) CheckUserExists(email string) bool
- func (cog CognitoHelper) CreateUser(email string)
- func (cog CognitoHelper) IsTokenExpired() bool
- func (cog CognitoHelper) Login(email string) *cognitoidentityprovider.InitiateAuthOutput
- func (cog CognitoHelper) RefreshToken()
- func (cog CognitoHelper) VerifyLogin(email string, session *string) *cognitoidentityprovider.RespondToAuthChallengeOutput
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDigitCode ¶
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 NewCognitoHelper ¶
func NewCognitoHelper(cid *cognitoidentityprovider.CognitoIdentityProvider) *CognitoHelper
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 (cog CognitoHelper) Login(email string) *cognitoidentityprovider.InitiateAuthOutput
func (CognitoHelper) RefreshToken ¶
func (cog CognitoHelper) RefreshToken()
func (CognitoHelper) VerifyLogin ¶
func (cog CognitoHelper) VerifyLogin(email string, session *string) *cognitoidentityprovider.RespondToAuthChallengeOutput
Click to show internal directories.
Click to hide internal directories.