get the login flow to go

This commit is contained in:
Violet Caulfield
2024-10-16 07:45:05 -05:00
parent 57fd344062
commit 7fe2f27d12
2 changed files with 8 additions and 6 deletions

View File

@@ -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)
});