mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
GitHub - branch protection uses silent auth (#184609)
This commit is contained in:
@@ -59,10 +59,10 @@ export function getOctokit(): Promise<Octokit> {
|
||||
|
||||
let _octokitGraphql: Promise<graphql> | undefined;
|
||||
|
||||
export async function getOctokitGraphql(silent = false): Promise<graphql> {
|
||||
export async function getOctokitGraphql(): Promise<graphql> {
|
||||
if (!_octokitGraphql) {
|
||||
try {
|
||||
const session = await authentication.getSession('github', scopes, { silent });
|
||||
const session = await authentication.getSession('github', scopes, { silent: true });
|
||||
|
||||
if (!session) {
|
||||
throw new AuthenticationError('No GitHub authentication session available.');
|
||||
|
||||
Reference in New Issue
Block a user