cognito

package
v0.0.0-...-e80a178 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CognitoSvc         *cognitoidentityprovider.CognitoIdentityProvider
	AWSRegion          string
	CognitoAppClientId string
	CognitoPoolID      string
)

Functions

func AddUserToGroup

func AddUserToGroup(u string, g string) error

func CreateSecretHash

func CreateSecretHash(username string) string

func DeleteSession

func DeleteSession(tokenAccess string) error

Deletes user's jti from redis

func GetSession

func GetSession(id string) (string, error)

Gets the jti from redis through the userId

func Init

func Init()

func ParseToken

func ParseToken(tokenString string) (jwt.Token, error)

func StoreSession

func StoreSession(tokenAccess string) error

Stores the jti in redis

func ValidateToken

func ValidateToken(tokenString string) (jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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