Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const forProfile: HttpClientFactory = ({context, options}) => context &&
HttpClient.forExternal(`http://${context.account}.vtexcommercestable.com.br/api/profile-system/pvt/profiles`, context, {...options, headers: {
'Proxy-Authorization': context.authToken,
'VtexIdClientAutCookie': context.authToken,
'X-Vtex-Proxy-To': `http://${context.account}.vtexcommercestable.com.br`,
}, metrics})