Skip to content

Commit 4b9c75a

Browse files
Merge 755c901 into 0fac7bd
2 parents 0fac7bd + 755c901 commit 4b9c75a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/firestore/src/api/credentials.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
FirebaseAuthInternalName
2424
} from '@firebase/auth-interop-types';
2525
import { Provider } from '@firebase/component';
26+
import { logDebug } from '../util/log';
2627

2728
// TODO(mikelehen): This should be split into multiple files and probably
2829
// moved to an auth/ folder to match other platforms.
@@ -214,10 +215,11 @@ export class FirebaseCredentialsProvider implements CredentialsProvider {
214215
// outstanding so the response is potentially for a previous user (which
215216
// user, we can't be sure).
216217
if (this.tokenCounter !== initialTokenCounter) {
217-
throw new FirestoreError(
218-
Code.ABORTED,
218+
logDebug(
219+
'FirebaseCredentialsProvider',
219220
'getToken aborted due to token change.'
220221
);
222+
return this.getToken();
221223
} else {
222224
if (tokenData) {
223225
hardAssert(

0 commit comments

Comments
 (0)