mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-25 01:41:41 +01:00
Move to new auth API shape (#2595)
This will be more intentional on when one token is needed than the other.
This commit is contained in:
committed by
GitHub
parent
ed3fd71e27
commit
c90db9ae49
@@ -345,8 +345,8 @@ export class GithubCodeSearchService implements IGithubCodeSearchService {
|
||||
}
|
||||
|
||||
private async getGithubAccessToken(silent: boolean) {
|
||||
return (await this._authenticationService.getPermissiveGitHubSession({ silent }))?.accessToken
|
||||
?? (await this._authenticationService.getAnyGitHubSession({ silent }))?.accessToken;
|
||||
return (await this._authenticationService.getGitHubSession('permissive', { silent }))?.accessToken
|
||||
?? (await this._authenticationService.getGitHubSession('any', { silent }))?.accessToken;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user