We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1faa32 commit 3b34952Copy full SHA for 3b34952
packages/firestore/src/remote/remote_store.ts
@@ -772,6 +772,10 @@ export class RemoteStore implements TargetMetadataProvider {
772
// fresh auth token for the new user and re-fill the write pipeline with
773
// new mutations from the LocalStore (since mutations are per-user).
774
logDebug(LOG_TAG, 'RemoteStore received new credentials');
775
+ debugAssert(
776
+ !this.offlineCauses.has(OfflineCause.CredentialChange),
777
+ 'Only one credential change should be processed at a time'
778
+ );
779
this.offlineCauses.add(OfflineCause.CredentialChange);
780
781
await this.disableNetworkInternal();
0 commit comments