pnz-payments-sdk
Version:
PNZ Payments Account and Transaction API
14 lines • 578 B
JavaScript
/**
* Account and Transaction API SpecificationLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { accessTokenAuthenticationProvider, compositeAuthenticationProvider, } from './authentication';
export function createAuthProviderFromConfig(config) {
const authConfig = {
hTTPBearerAuthentication: config.bearerAuthCredentials &&
accessTokenAuthenticationProvider(config.bearerAuthCredentials),
};
return compositeAuthenticationProvider(authConfig);
}
//# sourceMappingURL=authProvider.js.map