amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

Missing state helper method for signed in users #14

Closed rcfrias closed 6 years ago

rcfrias commented 7 years ago

In order to be able to bind the signed-in state with the UI, it is necessary to know at all times if the user is an "authorized" / signed-in user, so that we can i.e. display admin controls or restricted sections.

goldenbearkin commented 6 years ago

just wonder why there is no "isUserSignedIn" function provided? It is so common practise. Please kindly suggest the official way to do "isUserSignedIn".