mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 14:37:06 +01:00
Allow reuathentication for jellyfin (#214)
This commit is contained in:
parent
7ddba8ede7
commit
b60ba27892
@ -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);
|
||||
}
|
||||
|
||||
|
@ -141,7 +141,7 @@ export const AppMenu = () => {
|
||||
const server = serverList[serverId];
|
||||
const isNavidromeExpired =
|
||||
server.type === ServerType.NAVIDROME && !server.ndCredential;
|
||||
const isJellyfinExpired = false;
|
||||
const isJellyfinExpired = server.type === ServerType.JELLYFIN && !server.credential;
|
||||
const isSessionExpired = isNavidromeExpired || isJellyfinExpired;
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user