Skip to content

Commit

Permalink
handle promise rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
milaGGL committed Dec 21, 2023
1 parent 537d399 commit e0eae26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/firestore/src/api/credentials.ts
Expand Up @@ -285,7 +285,12 @@ export class FirebaseAuthCredentialsProvider
const awaitNextToken: () => void = () => {
const currentTokenAttempt = nextToken;
asyncQueue.enqueueRetryable(async () => {
await currentTokenAttempt.promise;
currentTokenAttempt.promise.catch(error => {
logDebug(
'FirebaseAuthCredentialsProvider encountered an error: ',
error
);
});
await guardedChangeListener(this.currentUser);
});
};
Expand Down

0 comments on commit e0eae26

Please sign in to comment.