Skip to content

Instantly share code, notes, and snippets.

@p333ter
p333ter / axios-interceptors-refresh-token.js
Created June 23, 2022 11:22 — forked from ModPhoenix/axios-interceptors-refresh-token.js
Axios interceptors token refresh for few async requests. ES6
import axios from "axios";
import { settings } from "../settings";
import { authAPI } from ".";
const request = axios.create({
baseURL: settings.apiV1,
});
request.interceptors.request.use(
(config) => {