I'm currently working on an Angular2 App that utilizes Firebase as its User system, with authentication providers including Email + Password, Facebook, and Google.
One issue I have encountered is that when logging in with Facebook, I am unable to switch accounts. Even after logging out and selecting 'Login with Facebook' again, the app still uses the previous user account.
For the GoogleAuthProvider, I found a solution to manage account changes by using the following code:
const googleAuthProvider = new firebase.auth.GoogleAuthProvider();
googleAuthProvider.setCustomParameters({prompt: 'select_account'});
However, I have not been able to find a similar option for Facebook since the API is different and there is no documentation on how to achieve this.
Has anyone else faced this same challenge?