From e632eeb215c5e2c3f3c8be8eb3a4c3d46cd559ce Mon Sep 17 00:00:00 2001 From: DellaBitta Date: Mon, 16 Dec 2024 11:07:45 -0500 Subject: [PATCH] again for LiteAppCheckTokenProvider --- packages/firestore/src/api/credentials.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/firestore/src/api/credentials.ts b/packages/firestore/src/api/credentials.ts index ecaa982dcc8..dfc4ce5c218 100644 --- a/packages/firestore/src/api/credentials.ts +++ b/packages/firestore/src/api/credentials.ts @@ -632,10 +632,10 @@ export class EmptyAppCheckTokenProvider implements CredentialsProvider { /** AppCheck token provider for the Lite SDK. */ export class LiteAppCheckTokenProvider implements CredentialsProvider { private appCheck: FirebaseAppCheckInternal | null = null; - private serverAppAppCheckToken?: string; + private serverAppAppCheckToken: string | null = null; constructor( - private app: FirebaseApp, + app: FirebaseApp, private appCheckProvider: Provider ) { if (_isFirebaseServerApp(app) && app.settings.appCheckToken) { @@ -647,7 +647,7 @@ export class LiteAppCheckTokenProvider implements CredentialsProvider { } getToken(): Promise { - if (this.serverAppAppCheckToken) { + if (this.serverAppAppCheckToken !== null) { return Promise.resolve(new AppCheckToken(this.serverAppAppCheckToken)); }