Commit 0b3c9586 authored by quentin.vrel's avatar quentin.vrel

disconnect the user when the token is outdated

parent 765be7d9
......@@ -60,6 +60,7 @@ export default {
.then(json => this.games = json)
.catch(() => {
alert("Votre session a expiré");
localStorage.removeItem('user');
this.$router.push("/");
});
},
......
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