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.
28 lines (24 loc) • 761 B
text/typescript
/**
* Shell SmartPay APILib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import {
compositeAuthenticationProvider,
customHeaderAuthenticationProvider,
} from './authentication';
import { Configuration } from './configuration';
export function createAuthProviderFromConfig(config: Partial<Configuration>) {
const authConfig = {
mppToken:
config.mppTokenCredentials &&
customHeaderAuthenticationProvider(config.mppTokenCredentials),
oAuthTokenPost:
config.oAuthTokenPostCredentials &&
customHeaderAuthenticationProvider(config.oAuthTokenPostCredentials),
};
return compositeAuthenticationProvider<
keyof typeof authConfig,
typeof authConfig
>(authConfig);
}