mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-15 15:08:30 -06:00
9 lines
401 B
TypeScript
9 lines
401 B
TypeScript
import { fetchServer } from "../../queries/functions/storage";
|
|
import { JellyfinCredentials } from "../../types/jellyfin-credentials";
|
|
import * as Keychain from "react-native-keychain"
|
|
|
|
|
|
|
|
export const mutateServerCredentials = async (credentials: JellyfinCredentials) => {
|
|
return Keychain.setInternetCredentials((await fetchServer()).url, credentials.username, credentials.accessToken!);
|
|
} |