We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 763eeff commit 18a8118Copy full SHA for 18a8118
lib/error-handler.js
@@ -40,7 +40,8 @@ export default function errorHandler (errorResponse) {
40
41
// Obscure the Management token
42
if (config.headers && config.headers['Authorization']) {
43
- config.headers['Authorization'] = 'Bearer ACCESS_TOKEN'
+ const token = `...${config.headers['Authorization'].substr(-5)}`
44
+ config.headers['Authorization'] = `Bearer ${token}`
45
}
46
if (isObject(config)) {
47
errorData.request = {
0 commit comments