DEV Community

Discussion on: HowTo: Implement user sign up and login with AWS Cognito

Collapse
 
razor1911 profile image
razor1911 • Edited

Thanks for you post Frankz, just one question, How do you validate if the user you are going to create already exists due if you don't check it previously, the creation will fail saying "User account already exists"?

Collapse
 
franzwong profile image
Franz Wong

You can only know a user exists when you get the AliasExistsException.

Perhaps this link can help you.
github.com/aws-amplify/amplify-js/...