UserLambdaValidationException : Trying to integrate Passwordless Authentication using AWS Cognito and Amplify library in Android App


I'm getting "userLambdaValidationException" error while calling the sign in method. Error: DefineAuthChallenge failed with error User does not exist.

1 Answer

Based on the error it sounds like there is not a User within Cognito to be referenced or verified rather via the customer challenge. The user needs to register prior to passing a challenge in order to be authenticated. The following exert and additional information can be found in this AWS Blog:

"Amazon Cognito user pools allow you to build a custom authentication flow that uses AWS Lambda functions to authenticates users based on one or more challenge/response cycles. You can use this flow to implement password-less authentication that is based on custom challenges. To use this flow to implement FIDO authentication, you need to create credentials during the registration phase and reference these credentials in the user’s profile. You can then validate these credentials during the authentication phase in a custom challenge."

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions