isotoma / react-cognito

Library for integrating Facebook React and Amazon Cognito
Apache License 2.0
116 stars 48 forks source link

clear error message when COGNITO_USER_UNCONFIRMED #36

Open bzemms opened 6 years ago

bzemms commented 6 years ago

Scenario:

  1. try to login with wrong credentials. --> err message will appear
  2. login with the good credentials --> move to COGNITO_USER_UNCONFIRMED state

The bad: error message, on confirm screen still display error from step 1

The fix: clear the error message