Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Sign in With Different Account #61

Closed
JGSolutions opened this issue Oct 31, 2016 · 8 comments
Closed

Google Sign in With Different Account #61

JGSolutions opened this issue Oct 31, 2016 · 8 comments
Assignees

Comments

@JGSolutions
Copy link

Not sure if this is a feature request or a bug but how do we login with a different google account?

@TMSCH
Copy link
Contributor

TMSCH commented Oct 31, 2016

Hi,
This has been raised in another issue (#38). This is currently not possible as the default behavior of the Google accounts chooser is to automatically select the one signed in if there's only one. You can go to https://accounts.google.com and sign in to another account if you want to have the choice.
Closing this issue in favor of the former one.

@TMSCH TMSCH closed this as completed Oct 31, 2016
@JGSolutions
Copy link
Author

Ok thanks

@ddimitrop
Copy link

Not sure if I got the question correctly but would prompting for account selection help?
For example:

let provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({
  prompt: 'select_account'
});
firebase.auth().signInWithPopup(provider)

@bojeil-google
Copy link
Contributor

At the time FirebaseUI was built, custom OAuth parameters were not supported by the Firebase Auth. As they are supported now, we could look into providing a way to configure some of these when initializing the UI. For example we could require prompting to select an account or force reauthenticate in facebook UI, or set the language, etc.

@bojeil-google bojeil-google reopened this Feb 28, 2017
@giano574
Copy link

Any updates on this?

@bojeil-google
Copy link
Contributor

This should be fixed in 2.1.1 release.
Check https://github.com/firebase/firebaseui-web#configure-oauth-providers
You can now pass customParameters for OAuth providers. This will accept the prompt field that Google OAuth supports.

@nategr03
Copy link

@bojeil-google Is there a way we can use a similar approach with FacebookAuthProvider? What I'm trying to achieve is that when the user chooses to log in with Facebook, he gets a prompt asking to choose an account. Is this possible?

@bojeil-google
Copy link
Contributor

This behavior depends on the IdP. In this case, Facebook needs to expose that capability via custom OAuth parameters.

I know that Facebook has one parameter to require password re-entry:

'customParameters': {
  'auth_type': 'reauthenticate'
}

I don't know if they have another parameter to change accounts or whether reauthenticate flow allows account change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants