amazon-cognito-identity-dart icon indicating copy to clipboard operation
amazon-cognito-identity-dart copied to clipboard

How to handle New Password challenge?

Open pbaker5 opened this issue 6 years ago • 7 comments

Hi,

The Use Case 4 says that when Authenticating and a CognitoUserNewPasswordRequiredException is thrown, handle the new password challenge. Looking through cognito_user.dart I can't see a way of doing that. Am I missing something?

Thanks.

pbaker5 avatar Feb 25 '19 04:02 pbaker5

@pbaker5 did you find any solution for that, I have the same issue

demsey2 avatar Mar 08 '19 07:03 demsey2

@pbaker5 did you find any solution for that, I have the same issue

Nope.

pbaker5 avatar Mar 12 '19 21:03 pbaker5

I have a pr up for this flow. You can pull down my changes and try them out: https://github.com/jonsaw/amazon-cognito-identity-dart/pull/22

Note that I'm not sure @jonsaw has had a chance to review the changes yet. But, they worked for me in my very localized testing. Let me know if you run into any issues. :)

ncb000gt avatar Mar 13 '19 00:03 ncb000gt

thanks for the info, I tried to reference your fork in my pubspec.yaml with the following:

amazon_cognito_identity_dart:
    git:
      url: https://github.com/ncb000gt/amazon-cognito-identity-dart.git
      ref: master

but this still gets the original package, do you know how to fix that or what is there a better way to handle that?

demsey2 avatar Mar 13 '19 01:03 demsey2

@demsey2 Try the branch new_password_required_challenge.

ncb000gt avatar Mar 13 '19 01:03 ncb000gt

Hi! Any news on this? We need it as well... Thanks!

tigrenok00 avatar May 13 '19 06:05 tigrenok00

@tigrenok00 Hopefully you're able to use the branch I noted above - I can't promise commit parity with this project as I update it as needed, but it will get you the feature you're looking for.

ncb000gt avatar May 31 '19 05:05 ncb000gt