Skip to content

Commit 3aff81e

Browse files
Merge pull request #1028 from Microsoft/to-canonical-called-twice
Preventing toCanonical being called twice
2 parents 95c5dbe + d72d47c commit 3aff81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/authentication/keychain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function init(ctx: GlobalStateContext, keychain: Keytar = systemKeychain)
5252

5353
export async function getToken(host: string, { storage = defaultStorage, keychain = defaultKeychain } = {}): Promise<string | null | undefined> {
5454
host = toCanonical(host);
55-
const token = keychain!.getPassword(SERVICE_ID, toCanonical(host))
55+
const token = keychain!.getPassword(SERVICE_ID, host)
5656
.catch(() => storage!.get(keyFor(host)));
5757

5858
// While we're transitioning everything out of configuration and into local storage, it's possible

0 commit comments

Comments
 (0)