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

Can't complete logout AWS AWSCognitoAuth

Open huyttn123 opened this issue 7 years ago • 2 comments

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:

  • (void) signOut: (AWSCognitoAuthSignOutBlock) completion

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.

huyttn123 avatar Jan 18 '18 10:01 huyttn123

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.

yuntuowang avatar Mar 21 '18 17:03 yuntuowang

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

a053a avatar Dec 05 '18 03:12 a053a