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

The Authetication wouldn't work in incognito mode. #57

Closed bhao-speedline closed 6 years ago

bhao-speedline commented 6 years ago

I got the authentication work in normal mode, but it failed in incognito mode all the time. I'm wondering whether it's supposed to fail in incognito mode or I didn't do it correctly.

itrestian commented 6 years ago

Any particular error you are getting? Can you try with the unminified versions of the libraries and Google Chrome Developer Tools and see what error you are getting?

bhao-speedline commented 6 years ago

@itrestian I found the reason for the failure. I called getSession() immediately after I called parseCognitoWebResponse(), and at that time, the makePOSTRequest() hadn't got the response yet. It's weird that it only failed in incognito mode. Thanks anyways.

itrestian commented 6 years ago

Sounds good, so issue can be closed?