mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-24 20:08:51 -05:00
idk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user