Retrieve the auth token from sessionStorage
This commit is contained in:
parent
c248fc6c06
commit
4a68bbc58e
1 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@ Vue.mixin({
|
||||||
}},
|
}},
|
||||||
computed: {
|
computed: {
|
||||||
api_token() {
|
api_token() {
|
||||||
let params = new URLSearchParams(window.location.hash.slice(1));
|
return sessionStorage.getItem(this.storage_key.token);
|
||||||
return params.get(`access_token`);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue