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:
Tyler James Leonhardt
2025-12-15 15:39:33 -08:00
committed by GitHub
parent ed3fd71e27
commit c90db9ae49
27 changed files with 114 additions and 121 deletions
@@ -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;
}