From 4ab919360a7da0c3dae43e6c46878e858164f98a Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+fallenbagel@users.noreply.github.com> Date: Sun, 11 Jan 2026 22:43:27 +0500 Subject: [PATCH] fix(setup): fix Plex login not proceeding after authentication (#2290) Directly fetch and populate SWR cache with user data instead of relying on revalidate() which is disabled on auth pages since #2213 fix #2288 --- src/components/Setup/LoginWithPlex.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Setup/LoginWithPlex.tsx b/src/components/Setup/LoginWithPlex.tsx index 85e83423..e7a078dd 100644 --- a/src/components/Setup/LoginWithPlex.tsx +++ b/src/components/Setup/LoginWithPlex.tsx @@ -28,7 +28,8 @@ const LoginWithPlex = ({ onComplete }: LoginWithPlexProps) => { const response = await axios.post('/api/v1/auth/plex', { authToken }); if (response.data?.id) { - revalidate(); + const { data: user } = await axios.get('/api/v1/auth/me'); + revalidate(user, false); } }; if (authToken) {