UNPKG

@fusebit-int/loom-provider

Version:
20 lines 731 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const framework_1 = require("@fusebit-int/framework"); const LoomClient_1 = require("./LoomClient"); class LoomProvider extends framework_1.Internal.Provider.Activator { /* * This function will create an authorized wrapper of the Loom SDK client. */ async instantiate(ctx, lookupKey) { const credentials = await this.requestConnectorToken({ ctx, lookupKey }); const client = new LoomClient_1.LoomClient(ctx, { credentials, lookupKey, connectorId: this.config.entityId, }); return client; } } exports.default = LoomProvider; //# sourceMappingURL=LoomProvider.js.map