- Newest
- Most votes
- Most comments
The Pre Authentication Lambda trigger is not executed when a user does not exist, except in cases where the PreventUserExistenceErrors setting is enabled for the associated app client. However, even with this configuration enabled, the trigger is invoked solely during authentication attempts for valid, existing users. Authentication requests for non-existent users continue to bypass the pre-authentication Lambda.
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html
Thank you for the quick reply! I've read it carefully, but still don't understand how a user can be both "valid and existing" and be "non-existing" at the same time? In my case, I've setup a social login (via Google) where on first login, the user is created in the user pool but does not (yet) trigger the Pre Authentication Lambda, so will be forwarded to the app without any checks.
answered 10 months ago
