Documentation
¶
Index ¶
Constants ¶
View Source
const ( PublicKeyCipherNumber = 12 SecretKeyCipherNumber = 5 PublicDescriptor = "pk" SecretDescriptor = "sk" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSConfig ¶
type AWSConfig struct { Region string `env:"AWS_REGION" envDefault:"ap-southeast-2"` CognitoUserPoolId string `env:"COGNITO_USERPOOLID"` CognitoClientId string `env:"COGNITO_CLIENTID"` }
func NewEnvConfig ¶
func NewEnvConfig() *AWSConfig
type User ¶
type User struct { Id string Token string BareToken string IsPublic bool IsAuthenticated bool UserAttributes map[string]string AuthenticationResult *cognito.AuthenticationResultType Config *AWSConfig }
func NewUserWithEnv ¶
func (*User) Authenticate ¶
func (*User) DecodeToken ¶
bareToken does not include it's descriptor.
Click to show internal directories.
Click to hide internal directories.