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 2715647 commit 26d0992Copy full SHA for 26d0992
firebase-firestore/src/main/java/com/google/firebase/firestore/core/FirestoreClient.java
@@ -129,8 +129,13 @@ public FirestoreClient(
129
130
appCheckProvider.setChangeListener(
131
(String appCheckToken) -> {
132
- // Register an empty credentials change listener to activate token
133
- // refresh.
+ // This will ensure that once a new App Check token is retrieved, streams are
+ // re-established using the new token.
134
+ asyncQueue.enqueueAndForget(
135
+ () -> {
136
+ Logger.debug(LOG_TAG, "App Check token changed.");
137
+ remoteStore.handleCredentialChange();
138
+ });
139
});
140
}
141
0 commit comments