cognito

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfValidPassword

func CheckIfValidPassword(password string) error

func GetPassword

func GetPassword() string

func GetUsername

func GetUsername() string

Types

type CognitoClient

type CognitoClient struct {
	Client *cognitoidentityprovider.Client
	Config *config.CognitoConfig
}

func New

func New(configuration *config.CognitoConfig) CognitoClient

func (*CognitoClient) ChangePassword

func (c *CognitoClient) ChangePassword()

func (*CognitoClient) InitiateAuth

func (c *CognitoClient) InitiateAuth(force bool)

func (*CognitoClient) PerformFirstSignIn

func (c *CognitoClient) PerformFirstSignIn()

func (*CognitoClient) RefreshTokens added in v1.0.6

func (c *CognitoClient) RefreshTokens()

func (*CognitoClient) RegisterMfaDevice

func (c *CognitoClient) RegisterMfaDevice()

func (*CognitoClient) ResetPassword

func (c *CognitoClient) ResetPassword()

Jump to

Keyboard shortcuts

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