@go-avro/avro-js 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,6 +148,7 @@ export class AvroQueryClient {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
config.authManager.onTokenRefreshFailed(() => {
|
|
151
|
+
this.clearCache();
|
|
151
152
|
this.setAuthState(AuthState.UNAUTHENTICATED);
|
|
152
153
|
if (this.socket && this.socket.connected) {
|
|
153
154
|
this.socket.disconnect();
|
|
@@ -551,6 +552,8 @@ export class AvroQueryClient {
|
|
|
551
552
|
return this.config.authManager.getCompanyId();
|
|
552
553
|
}
|
|
553
554
|
clearCache() {
|
|
555
|
+
this.companyId = undefined;
|
|
556
|
+
this.company = undefined;
|
|
554
557
|
return this.config.authManager.clearCache();
|
|
555
558
|
}
|
|
556
559
|
onAuthStateChange(cb) {
|