You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
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"