furaiev / amazon-cognito-identity-dart-2

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
187 stars 114 forks source link

Fix broken lastAuthUser lookup in CognitoUser #139

Closed malkovro closed 3 years ago

malkovro commented 3 years ago

Why?

A refactor as part of #130 shifted a bit too much of code. It led to the change of key of the LastAuthUser attribute of the CognitoUser class from CognitoIdentityServiceProvider.${pool.getClientId()}.LastAuthUser to CognitoIdentityServiceProvider.${pool.getClientId()}.$username.LastAuthUser.

On the User Pool class, the lastAuthUser is still looked up under the previous key...

Changes

dgofman commented 3 years ago

https://github.com/furaiev/amazon-cognito-identity-dart-2/pull/140

Should fix that issue. There are two problems

furaiev commented 3 years ago

Closed by https://github.com/furaiev/amazon-cognito-identity-dart-2/pull/140