docs-devsite/auth.persistence.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
An interface covering the possible persistence mechanism types.
<b>Signature:</b>
export interface Persistence
| Property | Type | Description |
|---|---|---|
| type | 'SESSION' | 'LOCAL' | 'NONE' | 'COOKIE' | Type of Persistence. - 'SESSION' is used for temporary persistence such as <code>sessionStorage</code>. - 'LOCAL' is used for long term persistence such as <code>localStorage</code> or <code>IndexedDB</code>. - 'NONE' is used for in-memory, or no persistence. - 'COOKIE' is used for cookie persistence, useful for server-side rendering. |
Type of Persistence. - 'SESSION' is used for temporary persistence such as sessionStorage<!-- -->. - 'LOCAL' is used for long term persistence such as localStorage or IndexedDB<!-- -->. - 'NONE' is used for in-memory, or no persistence. - 'COOKIE' is used for cookie persistence, useful for server-side rendering.
<b>Signature:</b>
readonly type: 'SESSION' | 'LOCAL' | 'NONE' | 'COOKIE';