Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle CONFIRM_SIGN_IN_WITH_NEW_PASSWORD after authentication #110

Closed
danielvtan opened this issue Sep 10, 2020 · 6 comments
Closed
Labels
Android Issues specific to the Android Platform auth Issues related to the Auth Category requires-android-fix This issue is the result of an underlying Amplify Android issue that needs to be fixed.

Comments

@danielvtan
Copy link

Describe the bug
How to handle CONFIRM_SIGN_IN_WITH_NEW_PASSWORD after authentication

To Reproduce
Steps to reproduce the behavior:

  1. Register new user in cognito
  2. Login new user in app
  3. Will not be able to login with result of res.nextStep.signInStep "CONFIRM_SIGN_IN_WITH_NEW_PASSWORD"
  4. See error

Expected behavior
Cant seem to find this feature in docs

Platform
Amplify Flutter current supports iOS and Android. This issue is reproducable in (check all that apply):
[x] Android
[] iOS

@haverchuck haverchuck added investigating Android Issues specific to the Android Platform labels Sep 10, 2020
@Ashish-Nanda Ashish-Nanda added the requires-android-fix This issue is the result of an underlying Amplify Android issue that needs to be fixed. label Sep 10, 2020
@danielvtan
Copy link
Author

This is blocking for us in our development progress. do you have any idea when will this be available? Can you point where this issue is, maybe we can help?

thank you!

@danielvtan
Copy link
Author

We made a temporary solution thru our backend. We automatically verify our users using adminInitiateAuth and adminRespondToAuthChallenge right after cognito registration.

Thanks!

@fjnoyp
Copy link
Contributor

fjnoyp commented Oct 2, 2020

Hi @danielvtan thanks for explaining the issue and your subsequent workaround. We are aware of this issue and will look into it.

@gatanaso
Copy link

gatanaso commented Dec 8, 2020

Hi @danielvtan,

What worked in our case is that after step 2 (when we receive the CONFIRM_SIGN_IN_WITH_NEW_PASSWORD), we call Amplify.Auth.confirmSignIn(confirmationValue: password) where password is the user's new password value which they enter in a text field.

Not sure if this is the "correct" way to handle this sign in step, but after the call to confirmSignIn the user is also marked as CONFIRMED in the Cognito console.

Hope this helps,
Goran

@haverchuck
Copy link
Contributor

Thanks @gatanaso! I'm closing this issue for now.

@SalahAdDin
Copy link

@haverchuck this repository should have the @gatanaso answer as documentation.

@Jordan-Nelson Jordan-Nelson added the auth Issues related to the Auth Category label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues specific to the Android Platform auth Issues related to the Auth Category requires-android-fix This issue is the result of an underlying Amplify Android issue that needs to be fixed.
Projects
None yet
Development

No branches or pull requests

7 participants