mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-26 13:50:06 -06:00
get the login flow to go
This commit is contained in:
@@ -18,9 +18,11 @@ export const fetchCredentials : () => Promise<Keychain.SharedWebCredentials> = (
|
||||
|
||||
const keychain = await Keychain.getInternetCredentials(serverUrl!);
|
||||
|
||||
if (!keychain)
|
||||
if (!keychain) {
|
||||
console.warn("No keychain for server address - signin required");
|
||||
throw new Error("Unable to retrieve credentials for server address from keychain");
|
||||
|
||||
}
|
||||
|
||||
resolve(keychain as Keychain.SharedWebCredentials)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user