How to use the azure-devops-node-api/handlers/bearertoken.BearerCredentialHandler function in azure-devops-node-api

To help you get started, we’ve selected a few azure-devops-node-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / azure-pipelines-tasks / Tasks / DownloadPackageV0 / connections.ts View on Github external
.then(url => {
            const options: IRequestOptions = {
                proxy: tl.getHttpProxyConfiguration(url),
                maxRetries: 5,
                allowRetries: true,
                presignedUrlPatterns: presignedUrlPatterns
            };
            return new WebApi(url, new BearerCredentialHandler(accessToken), options);
        })
        .catch(error => {
github microsoft / azure-pipelines-tasks / Tasks / DownloadPackageV1 / connections.ts View on Github external
.then(url => {
            const options: IRequestOptions = {
                proxy: tl.getHttpProxyConfiguration(url),
                maxRetries: 5,
                allowRetries: true,
                presignedUrlPatterns: presignedUrlPatterns
            };
            return new WebApi(url, new BearerCredentialHandler(accessToken), options);
        })
        .catch(error => {