voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
16 lines (9 loc) • 782 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [Dependencies](./auth.dependencies.md) > [persistence](./auth.dependencies.persistence.md)
## Dependencies.persistence property
Which [Persistence](./auth.persistence.md) 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](./auth.inmemorypersistence.md)<!-- -->.
<b>Signature:</b>
```typescript
persistence?: Persistence | Persistence[];
```