UNPKG

pnz-payments-sdk

Version:

PNZ Payments Account and Transaction API

25 lines (21 loc) 664 B
/** * Account and Transaction API SpecificationLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { accessTokenAuthenticationProvider, compositeAuthenticationProvider, } from './authentication'; import { Configuration } from './configuration'; export function createAuthProviderFromConfig(config: Partial<Configuration>) { const authConfig = { hTTPBearerAuthentication: config.bearerAuthCredentials && accessTokenAuthenticationProvider(config.bearerAuthCredentials), }; return compositeAuthenticationProvider< keyof typeof authConfig, typeof authConfig >(authConfig); }