@go-avro/avro-js 0.0.2-beta.145 → 0.0.2-beta.146
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.
|
@@ -220,6 +220,7 @@ export class AvroQueryClient {
|
|
|
220
220
|
const queryClient = this.getQueryClient();
|
|
221
221
|
return useMutation({
|
|
222
222
|
mutationFn: async (cancelToken) => {
|
|
223
|
+
this.setAuthState(AuthState.UNAUTHENTICATED);
|
|
223
224
|
await this.post('/logout', null, cancelToken);
|
|
224
225
|
await this.config.authManager.clearCache();
|
|
225
226
|
if (this.socket && this.socket.connected) {
|
|
@@ -227,8 +228,6 @@ export class AvroQueryClient {
|
|
|
227
228
|
}
|
|
228
229
|
},
|
|
229
230
|
onSettled: () => {
|
|
230
|
-
this.setAuthState(AuthState.UNAUTHENTICATED);
|
|
231
|
-
this.clearCache();
|
|
232
231
|
queryClient.invalidateQueries();
|
|
233
232
|
},
|
|
234
233
|
onError: (err) => {
|