Skip to content

Instantly share code, notes, and snippets.

View abbasEbadian's full-sized avatar
👨‍💻
abbasebadiann@tashilgostar.com

Abbas Ebadian abbasEbadian

👨‍💻
abbasebadiann@tashilgostar.com
View GitHub Profile
@sohseyedi-web
sohseyedi-web / custom-axios.js
Last active February 27, 2025 17:58
Axios Interceptor (RefreshToken - AccessToken)
import axios from "axios";
const BASE_URL = process.env.API_URL;
const app = axios.create({
baseURL: BASE_URL,
withCredentials: true,
});
app.interceptors.request.use(