title: AWS Amplify: How to resend code when Auth 'signIn' API returns 'UserNotConfirmedException'
body: <p>I have an unconfirmed aws cognito user which did not verify his email during registration process. When he tries to login with following code:</p>
  
  <pre><code>Auth.signIn({
      username:email,
      password:password,
  })
  </code></pre>
  
  <p><br>
  the API returns </p>
  
  <blockquote>
    <p>'UserNotConfirmedException'</p>
  </blockquote>
  
  <p>Now at this point the user is unauthenticated, there is no current session or current user. How will this user be able to verify himself and get himself logged in?
  <br><br>
  <code>'verifyCurrentUserAttribute'</code> and <code>'resendSignUp'</code> APIs do not work for unauthenticated user.<br>
  Please help.</p>