1
0
mirror of https://github.com/fallenbagel/jellyseerr.git synced 2026-01-11 09:06:55 -05:00

Compare commits

...

1 Commits

Author SHA1 Message Date
fallenbagel
cdfe333980 fix(setup): fix Plex login not proceeding after authentication
Directly fetch and populate SWR cache with user data instead of relying on revalidate() which is
disabled on auth pages since #2213

fix #2288
2026-01-11 05:59:40 +08:00

View File

@@ -28,7 +28,8 @@ const LoginWithPlex = ({ onComplete }: LoginWithPlexProps) => {
const response = await axios.post('/api/v1/auth/plex', { authToken }); const response = await axios.post('/api/v1/auth/plex', { authToken });
if (response.data?.id) { if (response.data?.id) {
revalidate(); const { data: user } = await axios.get('/api/v1/auth/me');
revalidate(user, false);
} }
}; };
if (authToken) { if (authToken) {