Closed nyck33 closed 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?
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?
Please see here: https://github.com/furaiev/amazon-cognito-identity-dart-2/issues/82#issuecomment-945286080