Is it possible to move firebase database from one account to another account. My client want to move the database to firebase under their account. Is there any way to move from account (sourceaccount#gmail.com) to account (destinationacccount#gmail.com).
Many thanks
Is there any way to move from the account (sourceaccount#gmail.com) to the account (destinationacccount#gmail.com)?
Yes, you can export the JSON file right from the Firebase console and then you can import it to the second account. That's it.
Related
I want to share my Realtime database to my friend to edit it and add some data,
but I don not want to share him my firebase account,
So is there any way to handle this issue,
and is it possible to share it to him using Firebase Realtime database reference URL?
You can add members(emails) by clicking on settings (left top corner)
My Firebase account was cloned with another Gmail account. The Firestore in cloud function with all the information of my client account is now cloned to my personal account. I have two Firebase accounts, one is for my client, were all live data is present and the another account is for learning purposes, but today when I opened both accounts in a separate tab, the client data and everything in the Firebase was incompletely cloned in my personal Firebase account also.
If I change a value in one of the Firebase accounts, it reflects on the other with the same value changed in the other account.
On the Top menu bar there will be dropdown to select the current project. Make sure you have selected the correct project
I'm now working with flutter and firebase and I want to start freelancing. But when I create a project in firebase the project gets saved on my own account, So can I make the client able to control data himself?
You can go to Users and Permissions:
And add him to the project. Even with owner role:
It would also work the other side around. If the user want's to create the project on his own he could give you this kind of access.
I am using Cloud Functions to manage the database and the auth in my project. I followed the example https://github.com/firebase/functions-samples/tree/master/delete-unused-accounts-cron to delete inactive users in my app. I want to get only the anonymous users that were inactive for some time. I don't know to make the query to the identity toolkit to filter only the correct ones. Does anybody help?
Thanks!
I think your best bet is to write the account auth provider(s) into your database at the time of login, then use that to further filter the set of accounts that should be deleted. This way, you won't have to take the time to query each uid to find out what its providers are.
You can use the Admin SDK listUsers API to list all users and then inspect if the account has no provider data (assuming you don't use custom authentication)/no emails and inspect the metadata lastSignInTime. However, as Firebase sessions are indefinite, that does not guarantee the account is inactive:
Listing users: https://firebase.google.com/docs/auth/admin/manage-users#list_all_users
User record metadata which contains last sign in time: https://firebase.google.com/docs/reference/admin/node/admin.auth.UserRecord#metadata
Is there a way to access the "Authentication" database in Firebase?
I'm building an app which uses the Firebase anonymous authentication
I would like to access the Firebase "Authentication" database to check the last login of the user.
Tried looking through the web but didn't find any reference.
Can someone point me to the right direction please?
There is no API for you to access the timestamp of when a specific user last logged in. Most developers end up storing this type of information in their Firebase Database, for example with the structure outlined in the section structuring your database.
Firebase launched the admin node.js sdk. You can look users by uid or email and get their metadata like creation date and last login date.
https://firebase.google.com/docs/auth/admin/manage-users