utils

package
v0.0.0-...-4deda0a Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func InitDB

func InitDB()

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 (*CognitoAuth) ResendConfirmationCode

func (c *CognitoAuth) ResendConfirmationCode(email string) error

func (*CognitoAuth) Signup

func (c *CognitoAuth) Signup(email string, password string, firstName *string, lastName *string, fullName *string) error

func (*CognitoAuth) ValidateToken

func (c *CognitoAuth) ValidateToken(token string) (*cognitoidentityprovider.GetUserOutput, error)

Jump to

Keyboard shortcuts

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