package.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.
import axios from "axios";
import { HEADERS_KEYS } from "../initializers/constants";
import { values } from "ramda";
var resetAuthTokens = function resetAuthTokens() {
values(HEADERS_KEYS).forEach(function (header) {
delete axios.defaults.headers[header];
});
};
export { resetAuthTokens };
//# sourceMappingURL=axios.js.map