Hi Duarte - thanks for the post. I'm a bit of a Go and Cognito noob, so apologies if this is a dumb question. When I try setup my lambda functions there are a number of dependencies that they need that I cannot figure out, for example: auth.Challenge and request.Session. Could you provide some assistance in terms of the packages (and anything else you think I should know) in order to configure and run your example?
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.
Hi Duarte - thanks for the post. I'm a bit of a Go and Cognito noob, so apologies if this is a dumb question. When I try setup my lambda functions there are a number of dependencies that they need that I cannot figure out, for example: auth.Challenge and request.Session. Could you provide some assistance in terms of the packages (and anything else you think I should know) in order to configure and run your example?
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!