Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Firebase Notes

Myer Nore edited this page Aug 7, 2017 · 2 revisions

Firebase Authentication

Issue #35 deals with persistence across multiple devices or tabs. There are three settings for persistence in firebase:

  • firebase.auth.Auth.Persistence.LOCAL: state is persisted even when tab is closed; explicit sign out needed. Signing in anywhere is detected and synchronized.
  • firebase.auth.Auth.Persistence.SESSION: state is cleared when tab is closed. Each tab cannot see the state of the other tab.
  • firebase.auth.Auth.Persistence.NONE: state is cleared when tab is refreshed To set,
  • use firebase.auth().setPersistence(firebase.auth.Auth.Persistence.SESSION).
  • "only sets on the specified Auth instance for the currently saved Auth session and apply this type of persistence for future sign-in requests"
  • returns "a promise that will resolve once the state finishes copying from one type of storage to the other"
  • default is local
Clone this wiki locally