Closed kebsont closed 4 years ago
Hello, When I try to get the currentUser() from Page to Page I got this error.
flutter: The error; flutter: NoSuchMethodError: The method 'getSession' was called on null. Receiver: null
flutter: The error; flutter: NoSuchMethodError: The method 'getSession' was called on null.
Receiver: null
Here my code
Future<UserService> _getValues() async { try { final user = await userPoolSettings.getCurrentUser(); final session = await user.getSession(); print(session); } catch (e) { print("The error; "); print(e); } return _userService; }
My userPool definition is like this, with great credentials
static final userPoolSettings = new CognitoUserPool( xxxxxxxxx, xxxxxx);
@kebsont sorry for the long reply, Have you managed to fix the issue?
Hello @furaiev , no I finally changed and used another technologie.
Ok, then I close this issue.
Hello, When I try to get the currentUser() from Page to Page I got this error.
Here my code
My userPool definition is like this, with great credentials