I built a web platform that allows users to signup with one user account to multiple web apps. Each app has its own separate firebase database. Is it possible to use firebase authentication and to share the same authentication between the various firebase databases? I mean like single sign on to multiple firebase database via one user base.
Yes, You can use the same firebase database in more than one android application as below: In the Project Overview section of Firebase Console add an android application. For adding this application first you need to give that package name. Download config file in JSON format.
Create multiple Realtime Database instances In the Firebase console, go to the Data tab in the Develop > Database section. Select Create new database from the menu in the Realtime Database section. Customize your Database reference and Security rules, then click Got it.
However, when you want to access multiple projects from a single application, you'll need a distinct Firebase application object to reference each one individually. It's up to you to initialize these other instances.
Please read this recent blog post on the Firebase blog. It addresses various scenarios where all your data is not in a single project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With