I am trying to understand Firebase authentication.
I have auth setup with Google as a provider
I have .read/.write rules on my database
I use a GoogleAuthProvider popup to get a Google credential to sign into the database. However, this lets me pick an account different from mydomain and that gives me a credential anyways (i.e. the signInWithCredential method succeeds. However, requests for data will fail, which is what I'd expect.
Is there a way to prevent the signInWithCredential method from ever succeeding if the user isn't going to have access to the database because of the rules? Is there a way to whitelist domains in the Firebase console auth config so that a Google user from a different domain would never even be able to try to make a request because they would never have a credential?