UNPKG

@kilterset/auth0-actions-testing

Version:

Test and develop Auth0 Actions or Okta CIC Actions locally.

30 lines 940 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.credentialsExchange = credentialsExchange; const cache_1 = require("./cache"); const access_token_1 = require("./access-token"); const access_1 = require("./access"); function credentialsExchange({ cache, } = {}) { const apiCache = (0, cache_1.cache)(cache); const access = (0, access_1.accessMock)("CredentialsExchange"); const accessToken = (0, access_token_1.accessTokenMock)("CredentialsExchange"); const state = { access: access.state, accessToken: accessToken.state, cache: apiCache, }; const api = { get access() { return access.build(api); }, get accessToken() { return accessToken.build(api); }, cache: apiCache, }; return { implementation: api, state, }; } //# sourceMappingURL=credentials-exchange.js.map