This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// axiosInstance example with good logging for developers | |
import axios from 'axios'; | |
import { API_PREFIX, API_URL } from '../config'; | |
import { getUserToken } from '../auth'; | |
const userToken = getUserToken(); | |
const headers: any = {}; | |
if (userToken) { | |
headers.Authorization = `Bearer ${userToken}`; |
OlderNewer