amazon-cognito-auth-js
amazon-cognito-auth-js copied to clipboard
Can't complete logout AWS AWSCognitoAuth
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.
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.
See https://forums.aws.amazon.com/message.jspa?messageID=849585#849585