Commit 17e045fc authored by Zohten's avatar Zohten

store token

parent c9c2573e
......@@ -67,6 +67,8 @@ export default {
let response = await request;
if (response.ok){
let json = await response.json();
localStorage.setItem('user', JSON.stringify(json));
this.$router.push('lobby');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment