Skip to content

Instantly share code, notes, and snippets.

View AndreyPatseiko's full-sized avatar

Andrey Patseiko AndreyPatseiko

View GitHub Profile
@INQTR
INQTR / axios-interceptors-refresh-token.js
Last active March 2, 2025 13:30
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) => {