Potentially fix application stuck when Navidrome credential expires (#538)

This commit is contained in:
jeffvli 2024-03-12 23:59:35 -07:00
parent 854b76702b
commit d806ade84c
2 changed files with 6 additions and 6 deletions

View file

@ -286,9 +286,10 @@ axiosClient.interceptors.response.use(
});
const serverId = currentServer.id;
useAuthStore
.getState()
.actions.updateServer(serverId, { ndCredential: undefined });
useAuthStore.getState().actions.updateServer(serverId, {
credential: undefined,
ndCredential: undefined,
});
useAuthStore.getState().actions.setCurrentServer(null);
// special error to prevent sending a second message, and stop other messages that could be enqueued