How to use the taskcluster-client-web.OIDCCredentialAgent function in taskcluster-client-web

To help you get started, we’ve selected a few taskcluster-client-web 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 taskcluster / taskcluster-tools / src / auth / UserSession.js View on Github external
constructor(options) {
    Object.assign(this, options);

    if (this.accessToken) {
      this.credentialAgent = new OIDCCredentialAgent({
        accessToken: this.accessToken,
        url: urls.api('login', 'v1', `/oidc-credentials/${this.oidcProvider}`)
      });
    }
  }

taskcluster-client-web

[![Download](https://img.shields.io/badge/yarn-taskcluster--client--web-brightgreen)](https://yarnpkg.com/en/package/taskcluster-client-web) [![License](https://img.shields.io/badge/license-MPL%202.0-orange.svg)](http://mozilla.org/MPL/2.0)

MPL-2.0
Latest version published 9 days ago

Package Health Score

66 / 100
Full package analysis

Similar packages