UNPKG

gdata-vaas

Version:

An SDK to for G DATA VaaS. Verdicts as a service.

18 lines 817 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const getTokenWithClientCredentialsGrant_1 = __importDefault(require("./getTokenWithClientCredentialsGrant")); class ClientCredentialsGrantAuthenticator { constructor(clientId, clientSecret, tokenEndpoint) { this.clientId = clientId; this.clientSecret = clientSecret; this.tokenEndpoint = tokenEndpoint; } getToken() { return (0, getTokenWithClientCredentialsGrant_1.default)(this.clientId, this.clientSecret, this.tokenEndpoint); } } exports.default = ClientCredentialsGrantAuthenticator; //# sourceMappingURL=ClientCredentialsGrantAuthenticator.js.map