Add a function to expire the authentication token
This commit is contained in:
parent
68d3925798
commit
c248fc6c06
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,11 @@ Vue.mixin({
|
|||
css_var(var_name) {
|
||||
return getComputedStyle(document.documentElement).getPropertyValue(var_name);
|
||||
},
|
||||
auth_expired() {
|
||||
sessionStorage.removeItem(this.storage_key.token);
|
||||
window.location.hash = ``;
|
||||
window.location.href = this.auth_redirect;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue