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

Can't complete logout AWS AWSCognitoAuth #72

Open huyttn123 opened 6 years ago

huyttn123 commented 6 years ago

HI, I'm using AWS Moblie SDK to login Facebook through AWSCognitoAuth. It open a web browser, I fill detail account Facebook A and it login successful.

But when I logout, I'm using method:

It return success. But when I try to login again with another account Facebook B. The web browser still cache data of previous account ( account Facebook A). I can't login by account Facebook B.

Please help me about this.

yuntuowang commented 6 years ago

Hi @huyttn123, Basically cognito will clear cognito cookies in browser once you click "sign out“. But Facebook cookies won't be cleared. So I think you need to look into Facebook API to see if there is a way. For example, you can create an iframe that calls Facebook logout url.

a053a commented 5 years ago

See https://forums.aws.amazon.com/message.jspa?messageID=849585#849585