Merge pull request #197 from cbusillo/fix/plex-home-profile-login-loop

Fix Plex Home profile selection login loop
This commit is contained in:
kikootwo
2026-05-15 06:31:01 -04:00
committed by GitHub
4 changed files with 43 additions and 7 deletions
+5 -1
View File
@@ -265,11 +265,15 @@ function LoginContent() {
}
// Poll for authorization
await login(pinId);
const loginResult = await login(pinId);
// Close popup
authWindow.close();
if (loginResult === 'profile-selection-required') {
return;
}
// Redirect to intended page or homepage
const redirect = searchParams.get('redirect') || '/';
router.push(redirect);