Skip to content

Commit b1d8928

Browse files
authored
Issue #3371 | Updated getAuthSessionOptions in case of GitHub Enterprise AuthProvider (#3565)
Resolves Unable to Access Enterprise Git Pull Requests #3371
1 parent e23ca3d commit b1d8928

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/github/credentials.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ export class CredentialStore implements vscode.Disposable {
8080
}
8181
}
8282
getAuthSessionOptions = { ...getAuthSessionOptions, ...{ createIfNone: false } };
83+
84+
if (authProviderId === AuthProvider['github-enterprise']) {
85+
getAuthSessionOptions = { ...getAuthSessionOptions, ...{ createIfNone: true, silent: false } };
86+
}
87+
8388
let session;
8489
try {
8590
session = await this.getSession(authProviderId, getAuthSessionOptions);

0 commit comments

Comments
 (0)