I am trying to add Google SignIn to my Firebase Webapp and according to the docs this is done via
firebase.auth().signInWithRedirect(provider); // using the google provider
and then handling the redirect result.
However I would like to limit this only to users of a specific domain
mycomany.com and then I
would also like to whitelist specific users in the firebase authentication who can access the webapp.
How can I combine those two (three) specification if possible?
If you want to restrict the domains that can be used to sign in to your project with Firebase authentication, you can set them at Firebase console > Authentication > Sign in methods > Authorized domains in the Firebase console.
Also see Peter’s answer here: Confusing Auth domain setting in Firebase