0
votes

I'm trying to register a user in a Cognito UserPool but I'm having issue with the Pre-signup trigger. I've configured a lambda like in the docs example

exports.handler = (event, context, callback) => {
    event.response.autoConfirmUser=true;
    callback(null, event);
};

Using CloudWatch logs I can see that the autoConfirmUser attribute is correctly set to true, but the user isn't confirmed. Here is the account in the UserPool:

enter image description here

Any idea how to fix this ?

1

1 Answers

0
votes

Are you calling

context.done(error, event);

like in the examples provided?