Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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}`)
});
}
}