Having problems to access Firebase Overview/Features - firebase

I am having problems to access Firebase Page.
I have multi google accounts and they were all connected at same time.
I have the firebase only registered in one of them and everysingle time I try to access firebase the first account that shows up as current is one that I am not registered with and not even logged in anymore.
Then when I change to the right one I can't access the features. The overview is completely different like it was reset or I just created an account. And I can't access anything.
It looks like a problem with multi google account and firebase.
Does anyone have the same? Is there a way to fix it?
I already logged out all my other accounts.

Related

Firebase google auth won't let me choose the account to connect with

I have implemented Firebase Auth into my app to let my users connect with their Google accounts. So far so good, however once a user has chosen to connect with a specific account from the google account chooser popup, he won't be able to choose a different account the next time he logs in. The previously selected account will be automatically picked for the authentication.
I really don't find this behavior correct, so I am trying to fix it.
After some research I found that I can use setCustomParameters(prompt: "select_account") with the googleProvider, like so:
this.googleProvider = new firebase.auth.GoogleAuthProvider();
this.googleProvider.setCustomParameters({
prompt: "select_account",
});
More info here: https://developers.google.com/identity/protocols/oauth2/openid-connect#authenticationuriparameters
In my case, using the consent and select_account parameters don't seem to have any impact, the user does not get to choose which account to use.
Edit: It would seem that it works correctly with chrome, but not with firefox...
I have found the source of the issue, it is in fact not really an issue. The google account picker will only show up if you have other accounts registered onto the device/browser you are currently using. If you want to choose a different account that is not saved into your device/browser, you would first need to log into it via google.

Possible reasons for Google Sign In returning SIGN_IN_FAILED 12500

I have an app available for download which uses Google Sign In. Most people do not have any problem signing in using Google Sign in so I know it is set up correctly with the right keys. However very occasionally we see the following error.
SIGN_IN_FAILED 12500
The docs say
The sign in attempt didn't succeed with the current account.
Unlike SIGN_IN_REQUIRED. when seeing this error code, there is nothing user can do to recover from the sign in failure. Switching to another account may or may not help. Check adb log to see details if any.
I suspect something has been disabled by a GSuite admin but I cannot see anything you can do to disable Google Sign In. In GSuite help I read under “View and revoke third-party applications connected to the user's Google Account”:
You can revoke service access only after it's been granted. You can't preemptively block users from granting access to specific apps.
Can anyone suggest what could cause this - for example how I could reproduce this issue by setting something in my own GSuite account?

Log in restriction using firebase auth

I've created a website using firebase authentication system. The website is intended for a specifik group of people which means i want to restrict sign up/log in for this group.
I've been looking around for a solution but haven't been able to find a good one. I got a tip about creating a "whitelist" for the allowed users and changing the security rules so that .read is true for these people. But would this restrict login?
So basically I'm wondering if anyone else has bumped into this problem? Or if anyone has a good solution?
What you can do is to set up FireBase Auth using the Email/Password signin provider.
Then, create a backend page/tool to pre-register the users and send them a verification email.
Details found in FireBase doc: https://firebase.google.com/docs/auth/users

Firebase account linking prompt

I understand how to link two Firebase accounts manually, by allowing a logged in user to select to link another account, and then using the `linkWithCredential' method.
However, is there a way to use Firebase's FirebaseAuthUserCollisionException to trigger a prompt to the user to link the auth method that they are trying to loggin in with, with that of the existing account?
After the research that I've done, I'm assuming not. However, any suggestions relating to this or similar approaches would be appreciated.

Using firebase to show all active page visitors on shopify site?

I am trying to see if its possible to use Firebase to show the number of active users in real time on my shopify site. I also want to show the active users on a single product page if thats possible.
I see the Firebase example code for Presence but it looks like this only works for logged in users. How do I or is it even possible to show the real time user count ignoring whether someone is logged in or not...similar to the real time google analytics count?
The Firebase presence samples (one, two, three) all rely on the Firebase onDisconnect() handling. This method allows you to specify write/delete actions that should happen to your Firebase data on the server, once it detects that the connection to a client has been lost.
A system like this can work fine with using Firebase Authentication, but you need some way to uniquely identify each user. This can be any sufficiently random identifier, or for example the uid generate by Firebase's anonymous authentication. Both serve the same goal: authentication without identifications. That last approach is somewhat similar to how many analytics services work: they give you a unique ID when they first see you and then track you by that ID.

Resources