#CognitoUserSession is not valid because idToken is null.

1 messages · Page 1 of 1 (latest)

wise coral
#

I haven't touched my software in 2 months and I decided to upgrade certain features and I ran into this issue and can not resolve it. Everytime I turn on the application (built in flutter) I get the following error message and I can't seem to figure out the problem:
Inspecting user state details
CognitoUserSession is not valid because idToken is null.
signalTokensNotAvailable
Tokens are invalid, please sign-in again.

#

I believe this segment of the code produces the error message:

#

Future<AuthUser> getCurrentUser() async {
final user = await Amplify.Auth.getCurrentUser();
return user;
}