I am using showAuthenticationDialog and authenticateWithFacebook to authenticate with Twitter and Facebook. Once a user logged in with the popup once, it automatically logs them in subsequent times making it impossible to log in with a different account.
Is there a way to clear the cookies in the popup or something similar?
Twitter’s OAuth API has a
force_loginparameter which will force you to enter your login details:https://dev.twitter.com/docs/api/1/get/oauth/authenticate
Facebook offers a similar
reauthenticateoption:https://developers.facebook.com/docs/authentication/reauthentication/
OAuth itself doesn’t specify how to do any of this, since it was intended to provide Authorization servers. OpenID Connect specifies a single parameter, ‘approval_prompt=force’, which will hopefully make this easier in the future.