mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-22 11:48:35 -06:00
fix fetchreds
This commit is contained in:
@@ -12,16 +12,15 @@ export const fetchCredentials : () => Promise<Keychain.SharedWebCredentials> = (
|
||||
|
||||
console.debug(`REMOVE THIS::Server Url ${serverUrl}`);
|
||||
|
||||
if (!_.isNull(serverUrl))
|
||||
Keychain.getInternetCredentials(serverUrl!)
|
||||
.then((keychain) => {
|
||||
if (!keychain)
|
||||
reject(new Error("Unable to retrieve credentials for server address"))
|
||||
if (_.isNull(serverUrl))
|
||||
throw new Error("Unable to retrieve credentials without a server URL");
|
||||
|
||||
resolve(keychain as Keychain.SharedWebCredentials)
|
||||
})
|
||||
const keychain = await Keychain.getInternetCredentials(serverUrl!);
|
||||
|
||||
throw new Error("Unable to retrieve credentials without a server URL");
|
||||
if (!keychain)
|
||||
throw new Error("Unable to retrieve credentials for server address from keychain");
|
||||
|
||||
resolve(keychain as Keychain.SharedWebCredentials)
|
||||
});
|
||||
|
||||
export const fetchServerUrl : () => Promise<string> = () => new Promise(async (resolve, reject) => {
|
||||
|
||||
10
components/Settings/helpers/sign-out.tsx
Normal file
10
components/Settings/helpers/sign-out.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from "react";
|
||||
import { View } from "react-native-ui-lib";
|
||||
|
||||
export default function SignOut(): React.JSX.Element {
|
||||
return (
|
||||
<View>
|
||||
|
||||
</View>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user