Fixed saving token

This commit is contained in:
konrad 2017-12-19 11:14:49 +01:00 committed by kolaente
parent 78fe10094e
commit 41eaffba6d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export default {
})
.then(response => {
// Save the token to local storage for later use
localStorage.removeItem('token') // Delete an eventually preexisting old token
localStorage.setItem('token', response.data.token)
// Tell others the user is autheticated