[+] Login with token every time

This commit is contained in:
Hykilpikonna
2019-12-02 14:03:35 -05:00
parent 7f07c7d3d6
commit 4521832a76
+2 -3
View File
@@ -33,9 +33,8 @@ export default class Login extends Vue
}
else
{
// Already contains valid token / TODO: Validate
// TODO: Update token each access
this.$emit('login:token', this.$cookies.get('va.token'));
// Login with token TODO: Logout if expired
this.login('/login/token', {token: this.$cookies.get('va.token')});
}
}
else console.log('Cookies doesn\'t exist');