Closed subzero911 closed 3 years ago
On app startup I try to restore previous session, calling Auth()..load(). That's how I do it (I followed an example):
final userPool = CognitoUserPool( 'eu-central-1_xxx', 'yyyzzz', ); void load() { _cognitoUser = await userPool.getCurrentUser(); _session = await _cognitoUser.getSession(); }
For some reason, getCurrentUser() doesn't found a previous user on local storage I found with debugger, that lastAuthUser is null.
On app startup I try to restore previous session, calling Auth()..load(). That's how I do it (I followed an example):
For some reason, getCurrentUser() doesn't found a previous user on local storage I found with debugger, that lastAuthUser is null.