Compare commits

...

4 Commits

Author SHA1 Message Date
lance chant
a3ccedc85c Merge branch 'develop' into fix/qr-code-scanning-ios 2026-05-31 22:02:23 +02:00
Alex
52e6f56220 fix(auth): clear stored user on logout to prevent empty home on relaunch (#1622) 2026-05-31 21:52:41 +02:00
lance chant
6f21545f19 Merge branch 'develop' into fix/qr-code-scanning-ios 2026-05-31 14:05:11 +02:00
Lance Chant
695027911a fix: qr code scanning not working ios
Added the multicast entitlement for ios

Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
2026-05-31 14:02:44 +02:00
2 changed files with 10 additions and 1 deletions

View File

@@ -29,7 +29,8 @@
},
"supportsTablet": true,
"entitlements": {
"com.apple.developer.networking.wifi-info": true
"com.apple.developer.networking.wifi-info": true,
"com.apple.developer.networking.multicast": true
},
"bundleIdentifier": "com.fredrikburmester.streamyfin",
"icon": "./assets/images/icon-ios-liquid-glass.icon",

View File

@@ -69,6 +69,13 @@ const initialApi = (() => {
const initialUser = (() => {
try {
// Only return a stored user if we also have a token. Otherwise the
// user atom would be populated while the api atom is null (e.g. after
// a logout that left stale user JSON in storage), which causes
// useProtectedRoute to keep us inside the (auth) group instead of
// redirecting to /login.
const token = storage.getString("token");
if (!token) return null;
const userStr = storage.getString("user");
if (userStr) {
return JSON.parse(userStr) as UserDto;
@@ -402,6 +409,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
);
storage.remove("token");
storage.remove("user");
clearTVDiscoverySafely();
setUser(null);
setApi(null);