Skip to content

Instantly share code, notes, and snippets.

View silasstoffel's full-sized avatar
🏠
Working from home

Silas Stoffel silasstoffel

🏠
Working from home
View GitHub Profile
@silasstoffel
silasstoffel / axios-request-interceptors.js
Last active April 1, 2020 02:32
Axios - Config request interceptors for authorization Bearer
import axios from "axios";
// parameters of my configuration http
import httpConfig from "../config/http";
const http = axios.create({
baseURL: httpConfig.baseUrl
});
http.interceptors.request.use(
request => {