Documentation ¶
Index ¶
- Variables
- func InitDB()
- type CognitoAuth
- func (c *CognitoAuth) AdminGetUser(username string) (*cognitoidentityprovider.AdminGetUserOutput, error)
- func (c *CognitoAuth) ConfirmSignUp(email string, code string) error
- func (c *CognitoAuth) Login(email string, password string) (*cognitoidentityprovider.InitiateAuthOutput, error)
- func (c *CognitoAuth) ResendConfirmationCode(email string) error
- func (c *CognitoAuth) Signup(email string, password string, firstName *string, lastName *string, ...) error
- func (c *CognitoAuth) ValidateToken(token string) (*cognitoidentityprovider.GetUserOutput, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type CognitoAuth ¶
type CognitoAuth struct { Cfg aws.Config UserPoolID string AppClientID string AppClientSecret string }
func InitAWSConfig ¶
func InitAWSConfig() (*CognitoAuth, error)
func (*CognitoAuth) AdminGetUser ¶
func (c *CognitoAuth) AdminGetUser(username string) (*cognitoidentityprovider.AdminGetUserOutput, error)
func (*CognitoAuth) ConfirmSignUp ¶
func (c *CognitoAuth) ConfirmSignUp(email string, code string) error
func (*CognitoAuth) Login ¶
func (c *CognitoAuth) Login(email string, password string) (*cognitoidentityprovider.InitiateAuthOutput, error)
func (*CognitoAuth) ResendConfirmationCode ¶
func (c *CognitoAuth) ResendConfirmationCode(email string) error
func (*CognitoAuth) ValidateToken ¶
func (c *CognitoAuth) ValidateToken(token string) (*cognitoidentityprovider.GetUserOutput, error)
Click to show internal directories.
Click to hide internal directories.