We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65641f commit d967c2fCopy full SHA for d967c2f
client/src/Api.js
@@ -2,13 +2,13 @@ import axios from 'axios'
2
3
const instance = axios.create({
4
baseURL: process.env.VUE_APP_SERVER_URI,
5
- timeout: 1000
+ timeout: 2000
6
});
7
8
const createApi = (auth) => {
9
10
instance.interceptors.request.use(async function (config) {
11
- let accessToken = await auth.getAccessToken()
+ let accessToken = auth.getAccessToken()
12
config.headers = {
13
Authorization: `Bearer ${accessToken}`
14
}
0 commit comments