jonsaw / amazon-cognito-identity-dart

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
205 stars 93 forks source link

Return session on CognitoUserNewPasswordRequiredException #40

Closed yezarela closed 2 years ago

yezarela commented 5 years ago

Because we need session when responding to auth challenge

final Map<String, dynamic> params = {
        'ChallengeName': 'NEW_PASSWORD_REQUIRED',
        'ChallengeResponses': challengeResponses,
        'ClientId': userPool.getClientId(),
        'Session': session, <<<--
 };
userPool.client.request('RespondToAuthChallenge', params);
furaiev commented 4 years ago

Hi all here, I've copied this project in a separate package (because this one isn't supported anymore) https://pub.dev/packages/amazon_cognito_identity_dart_2 Welcome to contribute.