import { ConfigParser } from '@fc/config' ; import { OidcClientConfig } from '@fc/oidc-client' ; const env = new ConfigParser ( process . env , 'OidcClient' ) ; export default { httpOptions : { key : env . file ( 'HTTPS_CLIENT_KEY' ) , cert : env . file ( 'HTTPS_CLIENT_CERT' ) , timeout : parseInt ( process . env . REQUEST_TIMEOUT , 10 ) , } , jwks : { keys : [ JSON . parse ( process . env . JWKS ) ] , } , stateLength : 32 , acr : env . string ( 'ACR' ) , scope : env . string ( 'SCOPE' ) , fapi : env . boolean ( 'FAPI' ) , } as OidcClientConfig ;