Closed mymattcarroll closed 6 years ago
@yuntuowang is there any chance of this contribution being considered? It is currently blocking us from using this SDK in production.
@yuntuowang, getCachedSession()
function will never return null
. I am happy to put that back in if you'd like?
Hi @mymattcarroll, I get your point. Better to add "this.getCachedSession() != null" back to be clearer.
I think your change is valid. I will merge it soon. Thanks!
@yuntuowang, I have added back in the check for null
.
Cheers.
Hi @mymattcarroll, you fix has been pushed and published on NPM too. Thanks a lot for your contribution!!
The current constructor is setting
this.signInUserSession
to a new instance ofCognitoAuthSession
. When refreshing the browser of a single page application,getSignInUserSession().getIdToken().getJwtToken()
returns an empty string (""
).The changes proposed fix this issue.