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.
16 lines • 679 B
JavaScript
/**
* Shell SmartPay APILib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { compositeAuthenticationProvider, customHeaderAuthenticationProvider, } from './authentication';
export function createAuthProviderFromConfig(config) {
const authConfig = {
mppToken: config.mppTokenCredentials &&
customHeaderAuthenticationProvider(config.mppTokenCredentials),
oAuthTokenPost: config.oAuthTokenPostCredentials &&
customHeaderAuthenticationProvider(config.oAuthTokenPostCredentials),
};
return compositeAuthenticationProvider(authConfig);
}
//# sourceMappingURL=authProvider.js.map