Error callback in Hosted UI function not getting proper error message from Lambda function #2255
Labels
cognito
Issues with the AWS Android SDK for Cognito
improvement
Improvements and suggestions from community
mobile client
Issues with AWS Mobile's client-side Cognito wrapper
AWS Cognoto Hosted UI
Is your feature request related to a problem? Please describe.
Hi,
I am developing an Android app that has login with Google and Facebook options. To achieve this I am using below line of code using Kotlin language.
Our backend developer has written a lambda trigger to check whether the same email Id is already present in database when user sign up and if it does, then it throws an error with error_description = "PreSign up failed with error An account with the given email already exists".
Now my problem is, I am not getting this "error_description" message in onError callback method. (refer [1] in kotlin code given above).
Instead, I get AuthServiceException with message "invalid_request". I want the exact same "error_description" that lambda is throwing.
Please help to solve my problem.
Thanks,
Shishir Pednekar
The text was updated successfully, but these errors were encountered: