Skip to content

Redacts API key and other credential headers on an axios-style error in place, including config headers, request header text, response config, and toJSON.

redactErrorHeaders(error, secrets?): void

Defined in: packages/bitbadgesjs-sdk/src/common/axiosApiKey.ts:219

Redacts API key and other credential headers on an axios-style error in place, including config headers, request header text, response config, and toJSON.

Parameters

error

any

secrets?

readonly string[]

Returns

void

Edit this page on GitHub