@go-avro/avro-js 0.0.2-beta.147 → 0.0.2-beta.148
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.
|
@@ -221,12 +221,12 @@ export class AvroQueryClient {
|
|
|
221
221
|
return useMutation({
|
|
222
222
|
mutationFn: async (cancelToken) => {
|
|
223
223
|
return new Promise((resolve) => {
|
|
224
|
-
this.setAuthState(AuthState.UNAUTHENTICATED);
|
|
225
224
|
this.post('/logout', null, cancelToken).then(() => {
|
|
226
225
|
this.config.authManager.clearCache().then(() => {
|
|
227
226
|
if (this.socket && this.socket.connected) {
|
|
228
227
|
this.socket.disconnect();
|
|
229
228
|
}
|
|
229
|
+
this.setAuthState(AuthState.UNAUTHENTICATED);
|
|
230
230
|
resolve();
|
|
231
231
|
});
|
|
232
232
|
});
|