The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > Dependencies > persistence

Dependencies.persistence property

Which Persistence to use. If this is an array, the first Persistence that the device supports is used. The SDK searches for an existing account in order and, if one is found in a secondary Persistence, the account is moved to the primary Persistence.

If no persistence is provided, the SDK falls back on inMemoryPersistence.

Signature:

persistence?: Persistence | Persistence[];