release v2.0.0 #4
|
@ -18,7 +18,7 @@ export default boot<Store<StateInterface>>(({ Vue, store }) => {
|
||||||
axios.interceptors.request.use(config => {
|
axios.interceptors.request.use(config => {
|
||||||
const session = store.state.user.session;
|
const session = store.state.user.session;
|
||||||
if (session.token) {
|
if (session.token) {
|
||||||
config.headers = {'Authorization': 'Token ' + session.token};
|
config.headers = {'Authorization': 'Bearer ' + session.token};
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue