feat: create a guild (#1)

This commit is contained in:
Divlo
2021-10-26 16:38:55 +02:00
committed by GitHub
parent a0fa66e8f5
commit d8fab08585
45 changed files with 530 additions and 315 deletions

View File

@ -1,8 +1,8 @@
import axios, { AxiosInstance } from 'axios'
import { io, Socket } from 'socket.io-client'
import { API_URL } from 'utils/api'
import { cookies } from 'utils/cookies'
import { API_URL } from '../api'
import { cookies } from '../cookies'
import { Tokens } from './'
import { fetchRefreshToken } from './authenticationFromServerSide'
@ -46,6 +46,7 @@ export class Authentication {
)
this.setAccessToken(accessToken)
}
config.headers = config.headers == null ? {} : config.headers
config.headers.Authorization = `${this.tokens.type} ${this.tokens.accessToken}`
return config
},