From 1bffa413a2b1a1401e6fe6e1d70ab4f976106f8f Mon Sep 17 00:00:00 2001 From: voc0der Date: Fri, 30 Jan 2026 21:16:39 +0000 Subject: [PATCH] Fix Seerr Local/Jellyfin authentication and request permissions (#734) ## Description When using LOCAL or JELLYFIN authentication methods to connect to Seerr, the login flow was not properly establishing session cookies and user permissions. The login would 'succeed' and you were led to thinking it worked, but then... This caused: - Request functionality to be greyed out even though the user should have access - Users to appear to have no permissions after login (permissions=0) ## Solution This PR fixes the authentication flow by: **Fetching full user config after login**: For LOCAL and JELLYFIN auth methods, the login endpoints (`authLocalPost()` and `authJellyfinPost()`) establish the session cookie but return incomplete user data. This PR now calls `authMeGet()` immediately after login to fetch the fully-populated user configuration including proper permissions. ## Tests - Have working apk on my dev fork. - Ran logins as Local + API. Cannot test Jellyfin due to environment, but codewise, it looks correct. ## Related issues Related to https://github.com/damontecres/Wholphin/issues/747 --------- Co-authored-by: Ray <154766448+damontecres@users.noreply.github.com> --- .../damontecres/wholphin/services/SeerrServerRepository.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/damontecres/wholphin/services/SeerrServerRepository.kt b/app/src/main/java/com/github/damontecres/wholphin/services/SeerrServerRepository.kt index 5d1ce4d3..f06a7529 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/services/SeerrServerRepository.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/services/SeerrServerRepository.kt @@ -196,6 +196,7 @@ private suspend fun login( password = password ?: "", ), ) + client.usersApi.authMeGet() } SeerrAuthMethod.JELLYFIN -> { @@ -205,6 +206,7 @@ private suspend fun login( password = password ?: "", ), ) + client.usersApi.authMeGet() } SeerrAuthMethod.API_KEY -> {