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
| appCheckInstance |[AppCheck](./app-check.appcheck.md#appcheck_interface)| The App Check service instance. |
158
-
| onNext | (tokenResult: [AppCheckTokenResult](./app-check.appchecktokenresult.md#appchecktokenresult_interface)<!---->) => void | When the token changes, this function is called with aa[AppCheckTokenResult](./app-check.appchecktokenresult.md#appchecktokenresult_interface)<!---->. |
158
+
| onNext | (tokenResult: [AppCheckTokenResult](./app-check.appchecktokenresult.md#appchecktokenresult_interface)<!---->) => void | When the token changes, this function is called with an[AppCheckTokenResult](./app-check.appchecktokenresult.md#appchecktokenresult_interface)<!---->. |
159
159
| onError | (error: Error) => void | Optional. Called if there is an error thrown by the listener (the <code>onNext</code> function). |
160
160
| onCompletion | () => void | Currently unused, as the token stream is unending. |
|[getFirestore(app)](./firestore_.md#getfirestore)| Returns the existing default [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
20
-
|[getFirestore(app, databaseId)](./firestore_.md#getfirestore)| <b><i>(BETA)</i></b> Returns the existing default[Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
20
+
|[getFirestore(app, databaseId)](./firestore_.md#getfirestore)| <b><i>(BETA)</i></b> Returns the existing named[Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
21
21
|[initializeFirestore(app, settings, databaseId)](./firestore_.md#initializefirestore)| Initializes a new instance of [Firestore](./firestore_.firestore.md#firestore_class) with the provided settings. Can only be called before any other function, including [getFirestore()](./firestore_.md#getfirestore)<!---->. If the custom settings are empty, this function is equivalent to calling [getFirestore()](./firestore_.md#getfirestore)<!---->. |
22
22
| <b>function(firestore...)</b> |
23
23
| [clearIndexedDbPersistence(firestore)](./firestore_.md#clearindexeddbpersistence) | Clears the persistent storage. This includes pending writes and cached documents.<!-- -->Must be called while the [Firestore](./firestore_.firestore.md#firestore_class) instance is not started (after the app is terminated or when the app is first initialized). On startup, this function must be called before other functions (other than [initializeFirestore()](./firestore_.md#initializefirestore) or [getFirestore()](./firestore_.md#getfirestore)<!-- -->)). If the [Firestore](./firestore_.firestore.md#firestore_class) instance is still running, the promise will be rejected with the error code of <code>failed-precondition</code>.<!-- -->Note: <code>clearIndexedDbPersistence()</code> is primarily intended to help write reliable tests that use Cloud Firestore. It uses an efficient mechanism for dropping existing data but does not attempt to securely overwrite or otherwise make cached data unrecoverable. For applications that are sensitive to the disclosure of cached data in between user sessions, we strongly recommend not enabling persistence at all. |
|[persistentMultipleTabManager()](./firestore_.md#persistentmultipletabmanager)| Creates an instance of <code>PersistentMultipleTabManager</code>. |
50
50
|[serverTimestamp()](./firestore_.md#servertimestamp)| Returns a sentinel used with [setDoc()](./firestore_lite.md#setdoc) or [updateDoc()](./firestore_lite.md#updatedoc) to include a server-generated timestamp in the written data. |
51
51
| <b>function(databaseId...)</b> |
52
-
|[getFirestore(databaseId)](./firestore_.md#getfirestore)| <b><i>(BETA)</i></b> Returns the existing [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the default [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
52
+
|[getFirestore(databaseId)](./firestore_.md#getfirestore)| <b><i>(BETA)</i></b> Returns the existing named [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the default [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
53
53
| <b>function(elements...)</b> |
54
54
|[arrayRemove(elements)](./firestore_.md#arrayremove)| Returns a special value that can be used with [setDoc()](./firestore_.md#setdoc) or that tells the server to remove the given elements from any array value that already exists on the server. All instances of each element specified will be removed from the array. If the field being modified is not already an array it will be overwritten with an empty array. |
55
55
|[arrayUnion(elements)](./firestore_.md#arrayunion)| Returns a special value that can be used with [setDoc()](./firestore_lite.md#setdoc) or [updateDoc()](./firestore_lite.md#updatedoc) that tells the server to union the given elements with any array value that already exists on the server. Each specified element that doesn't already exist in the array will be added to the end. If the field being modified is not already an array it will be overwritten with an array containing exactly the specified elements. |
@@ -240,14 +240,14 @@ export declare function getFirestore(app: FirebaseApp): Firestore;
The [Firestore](./firestore_.firestore.md#firestore_class) instance of the provided app.
243
+
The default [Firestore](./firestore_.firestore.md#firestore_class) instance of the provided app.
244
244
245
245
## getFirestore()
246
246
247
247
> 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.
248
248
>
249
249
250
-
Returns the existing default[Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings.
250
+
Returns the existing named[Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings.
251
251
252
252
<b>Signature:</b>
253
253
@@ -266,7 +266,7 @@ export declare function getFirestore(app: FirebaseApp, databaseId: string): Fire
The [Firestore](./firestore_.firestore.md#firestore_class) instance of the provided app.
904
+
The default [Firestore](./firestore_.firestore.md#firestore_class) instance of the default app.
905
905
906
906
## memoryEagerGarbageCollector()
907
907
@@ -947,7 +947,7 @@ export declare function serverTimestamp(): FieldValue;
947
947
> 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.
948
948
>
949
949
950
-
Returns the existing [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the default [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings.
950
+
Returns the existing named [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the default [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings.
951
951
952
952
<b>Signature:</b>
953
953
@@ -965,7 +965,7 @@ export declare function getFirestore(databaseId: string): Firestore;
'Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.'
0 commit comments