Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.apiClient = new DefaultApiClient();
}
if (this.refreshTokenConfig) {
const apiConfiguration : ApiConfiguration = {
apiClient: this.apiClient,
apiEndpoint: this.apiEndpoint,
authorizationValue: null,
};
const authenticationConfiguration : AuthenticationConfiguration = {
clientId: this.refreshTokenConfig.clientId,
clientSecret: this.refreshTokenConfig.clientSecret,
refreshToken: this.refreshTokenConfig.refreshToken,
};
return new services.skillManagement.SkillManagementServiceClient(apiConfiguration, authenticationConfiguration, this.customUserAgent);
}
throw new Error('Please provide refreshToken Config to build smapi client');
}
}