[+] 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 else
{ {
// Already contains valid token / TODO: Validate // Login with token TODO: Logout if expired
// TODO: Update token each access this.login('/login/token', {token: this.$cookies.get('va.token')});
this.$emit('login:token', this.$cookies.get('va.token'));
} }
} }
else console.log('Cookies doesn\'t exist'); else console.log('Cookies doesn\'t exist');