UNPKG

@mcma/client

Version:

Node module with classes and functions used to access services in an MCMA environment

11 lines (10 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.accessTokenAuth = accessTokenAuth; const access_token_authenticator_1 = require("./access-token-authenticator"); function accessTokenAuth(tokenProvider, authType, authContext) { return { authType: authType || "AccessToken", authenticator: new access_token_authenticator_1.AccessTokenAuthenticator(tokenProvider, authContext) }; }