Hi Joel, apologies for not preparing a runnable example. auth.Challenge is my own type, defined as
auth.Challenge
type AttributeType string const ( Email AttributeType = "email" Phone AttributeType = "phone_number" NoAttribute string = "" ) type Challenge struct { Attr AttributeType Code string }
request.Session is a member of CognitoEventUserPoolsCreateAuthChallengeRequest, the type of the Request field in CognitoEventUserPoolsCreateAuthChallenge. The latter is the input type of the Lambda function for the create auth challenge trigger.
request.Session
CognitoEventUserPoolsCreateAuthChallengeRequest
Request
CognitoEventUserPoolsCreateAuthChallenge
Hope that helps.
Thanks Duarte - much appreciated!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Joel, apologies for not preparing a runnable example.
auth.Challenge
is my own type, defined asrequest.Session
is a member ofCognitoEventUserPoolsCreateAuthChallengeRequest
, the type of theRequest
field inCognitoEventUserPoolsCreateAuthChallenge
. The latter is the input type of the Lambda function for the create auth challenge trigger.Hope that helps.
Thanks Duarte - much appreciated!