This commit is contained in:
Violet Caulfield
2024-10-21 07:46:01 -05:00
parent d4ba13573b
commit dddb339fc8
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -32,8 +32,10 @@ export const mutateServer = async (server: JellifyServer | undefined) => {
export const mutateServerCredentials = async (credentials?: JellyfinCredentials) => {
if (!_.isUndefined(credentials)) {
console.log("Setting Jellyfin credentials")
return await Keychain.setInternetCredentials((await fetchServer()).url, credentials.username, credentials.accessToken!);
}
console.log("Resetting Jellyfin credentials")
return await Keychain.resetInternetCredentials((await fetchServer()).url);
}
-2
View File
@@ -11,8 +11,6 @@ export const fetchCredentials : () => Promise<Keychain.SharedWebCredentials | un
let server = await fetchServer();
console.debug(`REMOVE THIS::Server name ${server.name}`);
if (_.isEmpty(server.url)) {
console.warn("Unable to retrieve credentials without a server URL");
resolve(undefined);