digital-payments-sdk
Version:
The APIs detailed within this SDK will enable Shell's Fleet Solutions Customers to digitalize Shell Card/s and use them to pay to refuel their vehicles at Shell Stations.
20 lines • 839 B
JavaScript
;
/**
* Shell SmartPay APILib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.createAuthProviderFromConfig = void 0;
var authentication_1 = require("./authentication");
function createAuthProviderFromConfig(config) {
var authConfig = {
mppToken: config.mppTokenCredentials &&
(0, authentication_1.customHeaderAuthenticationProvider)(config.mppTokenCredentials),
oAuthTokenPost: config.oAuthTokenPostCredentials &&
(0, authentication_1.customHeaderAuthenticationProvider)(config.oAuthTokenPostCredentials)
};
return (0, authentication_1.compositeAuthenticationProvider)(authConfig);
}
exports.createAuthProviderFromConfig = createAuthProviderFromConfig;
//# sourceMappingURL=authProvider.js.map