mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-31 19:59:31 -05:00
fix(jellyfin): clean up Jellyfin sessions on Jellyseerr logout (#1651)
* fix(jellyfin): clean up Jellyfin sessions on Jellyseerr logout * refactor(auth): remove deleteUserDevice method and handle device deletion directly in logout process * refactor(auth): optimize logout route for Jellyfin/Emby Only query database for Jellyfin/Emby users during logout to avoid unnecessary database queries for Plex/local users. This improves performance by skipping the device deletion process when it's not needed.
This commit is contained in:
@@ -22,6 +22,23 @@ export interface JellyfinUserResponse {
|
||||
PrimaryImageTag?: string;
|
||||
}
|
||||
|
||||
export interface JellyfinDevice {
|
||||
Id: string;
|
||||
Name: string;
|
||||
LastUserName: string;
|
||||
AppName: string;
|
||||
AppVersion: string;
|
||||
LastUserId: string;
|
||||
DateLastActivity: string;
|
||||
Capabilities: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface JellyfinDevicesResponse {
|
||||
Items: JellyfinDevice[];
|
||||
TotalRecordCount: number;
|
||||
StartIndex: number;
|
||||
}
|
||||
|
||||
export interface JellyfinLoginResponse {
|
||||
User: JellyfinUserResponse;
|
||||
AccessToken: string;
|
||||
|
||||
Reference in New Issue
Block a user