Firebase: Implementing Switch / Add Account Features

Viewed 670

I am working on Firebase application ( Firebase version 4.1.3 )

My health care related application is made for dependent group of people such as children and seniors. However, most of my users are independent group of people age around 18-55. Most of my users use my application for their seniors/children. They need to create account for each of their family seniors/children member. Therefore, my users have to log in and out many times and they have to keep track of their family members' account. My first thought was I should make an account switching feature so that my user can switch their account back and forth between their family members to update information on my application.

After searches on Google, I found way to force switching account on Firebase authentication with Google provider, but those are not what I'm looking for.

My questions are:

  • Is it possible to store the multiple firebase auth objects (logged in object) in client side?

  • If it is possible, for how long will the token inside the firebase auth object last for?

  • If it doesn't last forever, is it possible to refresh update the token so that it can be use without authenticating with the social/phone login again?

2 Answers
Related