File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/firestore/src/api Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
23
23
FirebaseAuthInternalName
24
24
} from '@firebase/auth-interop-types' ;
25
25
import { Provider } from '@firebase/component' ;
26
+ import { logDebug } from '../util/log' ;
26
27
27
28
// TODO(mikelehen): This should be split into multiple files and probably
28
29
// moved to an auth/ folder to match other platforms.
@@ -214,10 +215,11 @@ export class FirebaseCredentialsProvider implements CredentialsProvider {
214
215
// outstanding so the response is potentially for a previous user (which
215
216
// user, we can't be sure).
216
217
if ( this . tokenCounter !== initialTokenCounter ) {
217
- throw new FirestoreError (
218
- Code . ABORTED ,
218
+ logDebug (
219
+ 'FirebaseCredentialsProvider' ,
219
220
'getToken aborted due to token change.'
220
221
) ;
222
+ return this . getToken ( ) ;
221
223
} else {
222
224
if ( tokenData ) {
223
225
hardAssert (
You can’t perform that action at this time.
0 commit comments