Skip to content
Snippets Groups Projects
Commit 188d1c23 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: use correct auth method

parent d884c165
No related branches found
No related tags found
No related merge requests found
Pipeline #273624 failed
......@@ -34,7 +34,7 @@ if (stored_token != null) {
}
let netdb_axios_config_tmp = {
headers: {
'Authorization': stored_token,
'Authorization': 'Bearer ' + stored_token,
'Content-Type': 'application/json'
}
}
......@@ -102,7 +102,7 @@ const store = new Vuex.Store({
window.localStorage.setItem('token', JSON.stringify(token))
state.netdb_axios_config = {
headers: {
'Authorization': token.token,
'Authorization': 'Bearer ' + token.token,
'Content-Type': 'application/json'
}
}
......
......@@ -25,7 +25,7 @@
],
requestInterceptor: function (req) {
if (self.$store.state.logged_in) {
req.headers.Authorization = self.$store.state.token.token
req.headers.Authorization = "Bearer " + self.$store.state.token.token
window.console.log('Authorized from Session');
}
return req
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment