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

Unable to perform any action after establishing session #78

Closed rajan-4th-valley closed 4 years ago

rajan-4th-valley commented 4 years ago

It throws exception User is not authenticated whenever I try to perform following actions according to the documentation:

and others too, for which _signInUserSession is required (in cognito_user.dart file). It seems _signInUserSession is null even after establishing user session.

However, activities before sign in works (sign up, forgot password, Resend confirmation code, etc.)

rajan-4th-valley commented 4 years ago

It is solved now.

Sorry, It was actually a bug from my side as I was re-initializing the cognitoUser object in each methods.