0
0
Fork 0

Add a function to expire the authentication token

This commit is contained in:
Oliver-Akins 2020-08-17 23:07:23 -06:00
parent 68d3925798
commit c248fc6c06

View file

@ -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;
},
},
});