Skip to content

Commit d967c2f

Browse files
author
Matt Raible
committed
Increase timeout and remove await
1 parent b65641f commit d967c2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/Api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import axios from 'axios'
22

33
const instance = axios.create({
44
baseURL: process.env.VUE_APP_SERVER_URI,
5-
timeout: 1000
5+
timeout: 2000
66
});
77

88
const createApi = (auth) => {
99

1010
instance.interceptors.request.use(async function (config) {
11-
let accessToken = await auth.getAccessToken()
11+
let accessToken = auth.getAccessToken()
1212
config.headers = {
1313
Authorization: `Bearer ${accessToken}`
1414
}

0 commit comments

Comments
 (0)