package.cjs.utils.axios.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.resetAuthTokens = void 0;
var _axios = _interopRequireDefault(require("axios"));
var _constants = require("../initializers/constants");
var _ramda = require("ramda");
var resetAuthTokens = function resetAuthTokens() {
(0, _ramda.values)(_constants.HEADERS_KEYS).forEach(function (header) {
delete _axios["default"].defaults.headers[header];
});
};
exports.resetAuthTokens = resetAuthTokens;
//# sourceMappingURL=axios.js.map