amazon-cognito-auth-js icon indicating copy to clipboard operation
amazon-cognito-auth-js copied to clipboard

Pre-signup trigger output

Open angsm opened this issue 6 years ago • 0 comments

Hi, May I know if its possible in the Pre-SignUp trigger, to catch the error in validationData from Cognito if it outputs an error message (like "user already exist"). Or at least how the error would look like in the events or context object.

To prevent the trigger from continuing the code if Cognito sends an error.

Thank you Shimin A

angsm avatar Aug 29 '19 03:08 angsm