title: Cognito - How to get a user based on forget password code?
body: <p>I am trying to build a forget password flow in my app.
  So I started with: </p>
  
  <pre><code>val secret = getSigned64BaseContent(cognitoAppSecret, (email + cognitoAppId).getBytes(), HMAC_SHA256)
  val forgotPassword = new ForgotPasswordRequest()
    .withUsername(email)
    .withClientId(cognitoAppId)
    .withSecretHash(secret)
  client.forgotPassword(forgotPassword)
  </code></pre>
  
  <p>This will result in an email sent to the user. The email will contain a url to my app that will look something like this:</p>
  
  <pre><code>https://my.app.com/forgetPassword?token={code}
  </code></pre>
  
  <p>When the user will click on the url, I want to retrieve the user related to this code and continue from there by redirecting him to a screen with the ability to change password, and then complete the flow with <code>ConfirmForgotPasswordRequest</code>.</p>
  
  <p>The question is, how can I get the user based on the code?
  Is there a way to do it?</p>