Skip to content

Commit e632eeb

Browse files
committed
again for LiteAppCheckTokenProvider
1 parent de89ecd commit e632eeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firestore/src/api/credentials.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,10 @@ export class EmptyAppCheckTokenProvider implements CredentialsProvider<string> {
632632
/** AppCheck token provider for the Lite SDK. */
633633
export class LiteAppCheckTokenProvider implements CredentialsProvider<string> {
634634
private appCheck: FirebaseAppCheckInternal | null = null;
635-
private serverAppAppCheckToken?: string;
635+
private serverAppAppCheckToken: string | null = null;
636636

637637
constructor(
638-
private app: FirebaseApp,
638+
app: FirebaseApp,
639639
private appCheckProvider: Provider<AppCheckInternalComponentName>
640640
) {
641641
if (_isFirebaseServerApp(app) && app.settings.appCheckToken) {
@@ -647,7 +647,7 @@ export class LiteAppCheckTokenProvider implements CredentialsProvider<string> {
647647
}
648648

649649
getToken(): Promise<Token | null> {
650-
if (this.serverAppAppCheckToken) {
650+
if (this.serverAppAppCheckToken !== null) {
651651
return Promise.resolve(new AppCheckToken(this.serverAppAppCheckToken));
652652
}
653653

0 commit comments

Comments
 (0)