fix: quick connect not working

This commit is contained in:
Prayag Prajapati committed 2024-07-25 10:32:46 +05:30
1 parent b59e147a39
commit df91d4a744
17 files changed
+429 -428

No files matched your search

+3 -1
View File
@@ -35,7 +35,6 @@ export const Route = createFileRoute("/_api")({
const apiTemp = context.jellyfinSDK.createApi(
currentServer?.address,
userOnDisk.AccessToken,
axiosClient,
);
try {
await getUserApi(apiTemp).getCurrentUser();
@@ -48,10 +47,13 @@ export const Route = createFileRoute("/_api")({
},
});
}
return { api: apiTemp };
}
context.createApi(currentServer?.address, userOnDisk.AccessToken);
} else {
const apiTemp = context.jellyfinSDK.createApi(currentServer?.address, null);
context.createApi(currentServer?.address, undefined); // Creates Api
return { api: apiTemp };
}
}
} else if (context.api) {