title: AWS Cognito Swift SDK How can I check if a user is confirmed?
body: <p>I am very new to Cognito.  I have just successfully setup a signUp system using the examples provided and can use my iOS app to signUp users.  </p>
  
  <p>I require the users to verify an email during the signup.</p>
  
  <p>Their data appears on the Cognito console and prior to selecting the link in the verification email, their status is unconfirmed.</p>
  
  <p>In my app I don't want the user to be able to use the app until they verify their email.</p>
  
  <p>How can I check when the user has clicked on the email confirmation?  I don't want to route the user back to the login page after they sign up.  I take them to a page where they can press continue after confirming their email.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>self.user!.getSession(self.username, password: self.password, validationData: nil).continueWith(block: { (session) -&gt; Any? in
      if (self.user!.confirmedStatus == AWSCognitoIdentityUserStatus.confirmed) {
          print("confirmed")
      } else if (self.user!.confirmedStatus == AWSCognitoIdentityUserStatus.unconfirmed) {
          print("unconfirmed")
      } else if (self.user!.confirmedStatus == AWSCognitoIdentityUserStatus.unknown) {
          print("unknown")
      } else {
          print("elsecase")
      }
      return nil
  })
  </code></pre>
  
  <p>For some reason this is printing confirmed even though the user is unconfirmed.  </p>
  
  <p>Being very new to all this I'm really not sure what approach to take in my scenario to see when the user has clicked on their verification link.</p>