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
Adding `Persistence.COOKIE` a new persistence method backed by cookies. The `browserCookiePersistence` implementation is designed to be used in conjunction with middleware that ensures both your front and backend authentication state remains synchronized.
Copy file name to clipboardExpand all lines: docs-devsite/auth.md
+16
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ Firebase Authentication
150
150
| --- | --- |
151
151
|[ActionCodeOperation](./auth.md#actioncodeoperation)| An enumeration of the possible email action types. |
152
152
|[AuthErrorCodes](./auth.md#autherrorcodes)| A map of potential <code>Auth</code> error codes, for easier comparison with errors thrown by the SDK. |
153
+
|[browserCookiePersistence](./auth.md#browsercookiepersistence)| <b><i>(Public Preview)</i></b> An implementation of [Persistence](./auth.persistence.md#persistence_interface) of type <code>COOKIE</code>, for use on the client side in applications leveraging hybrid rendering and middleware. |
153
154
|[browserLocalPersistence](./auth.md#browserlocalpersistence)| An implementation of [Persistence](./auth.persistence.md#persistence_interface) of type <code>LOCAL</code> using <code>localStorage</code> for the underlying storage. |
154
155
|[browserPopupRedirectResolver](./auth.md#browserpopupredirectresolver)| An implementation of [PopupRedirectResolver](./auth.popupredirectresolver.md#popupredirectresolver_interface) suitable for browser based applications. |
155
156
|[browserSessionPersistence](./auth.md#browsersessionpersistence)| An implementation of [Persistence](./auth.persistence.md#persistence_interface) of <code>SESSION</code> using <code>sessionStorage</code> for the underlying storage. |
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
1967
+
>
1968
+
1969
+
An implementation of [Persistence](./auth.persistence.md#persistence_interface) of type `COOKIE`<!---->, for use on the client side in applications leveraging hybrid rendering and middleware.
1970
+
1971
+
This persistence method requires companion middleware to function, such as that provided by [ReactFire](https://firebaseopensource.com/projects/firebaseextended/reactfire/) for NextJS.
1972
+
1973
+
<b>Signature:</b>
1974
+
1975
+
```typescript
1976
+
browserCookiePersistence: Persistence
1977
+
```
1978
+
1963
1979
## browserLocalPersistence
1964
1980
1965
1981
An implementation of [Persistence](./auth.persistence.md#persistence_interface) of type `LOCAL` using `localStorage` for the underlying storage.
0 commit comments