UNPKG

@idfy/sdk

Version:
35 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IdfyConfiguration = void 0; const Urls_1 = require("./infrastructure/Urls"); const { version } = require('../package.json'); let IdfyConfiguration = /** @class */ (() => { class IdfyConfiguration { static setClientCredentials(clientId, clientSecret, scopes) { this.clientId = clientId; this.clientSecret = clientSecret; this.scopes = scopes; } static get baseUrl() { return this._baseUrl || Urls_1.default.defaultBaseUrl; } static set baseUrl(value) { this._baseUrl = value; } static get oauthBaseUrl() { return this._oauthBaseUrl || Urls_1.default.defaultOAuthUrl; } static set oauthBaseUrl(value) { this._baseUrl = value; } static get sdkVersion() { return version; } } IdfyConfiguration.clientId = ''; IdfyConfiguration.clientSecret = ''; IdfyConfiguration.scopes = []; return IdfyConfiguration; })(); exports.IdfyConfiguration = IdfyConfiguration; //# sourceMappingURL=IdfyConfiguration.js.map