mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
Allow reuathentication for jellyfin (#214)
This commit is contained in:
@@ -272,6 +272,12 @@ axiosClient.interceptors.response.use(
|
||||
if (error.response && error.response.status === 401) {
|
||||
const currentServer = useAuthStore.getState().currentServer;
|
||||
|
||||
if (currentServer) {
|
||||
useAuthStore
|
||||
.getState()
|
||||
.actions.updateServer(currentServer.id, { credential: undefined });
|
||||
}
|
||||
|
||||
authenticationFailure(currentServer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user