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

adding getKeys() method to cognito_storage.dart seems to break the example #173

Closed nyck33 closed 3 years ago

nyck33 commented 3 years ago

Please see here: https://github.com/furaiev/amazon-cognito-identity-dart-2/issues/82#issuecomment-945286080

nyck33 commented 3 years ago

in user_service init there is

 final storage = CognitoMemoryStorage();
 _userPool.storage = storage;

but it does not look to be used since await _cognitoUser?.cacheTokens(); is actually storing tokens in a storage member of CognitoUser.

are these lines safe to delete?

mailliwi commented 2 years ago

Hi, can I ask what you went for in the end? I'm struggling to understand how to persist the session with my current project.

I wanted to use FlutterSecureStorage but now I'm not sure it's needed with the cacheTokens() method, unless I'm mistaken?