amazon-cognito-auth-js icon indicating copy to clipboard operation
amazon-cognito-auth-js copied to clipboard

Session/CachedSession null before token expires

Open AntonioBusillo opened this issue 5 years ago • 0 comments

Hello everyone, I'm trying to use the Autherization Code Grant flow with this SDK but I have a problem: the session expires way before the token, also it becomes undefined when I change website and then I return to my page.

I'm following the documentation and this example with some edits in order to handle the session refresh and other things.

As far as I know, the problem is caused by isUserSignedIn() which checks if the session or the cachedSession are null, that is my problem right now.

AntonioBusillo avatar Oct 22 '19 09:10 AntonioBusillo