logout () {
    // TODO: tell server
    localStorage.removeItem('authorization')
    EventBus.$emit('authorization', { url: API_URL, authorization: null })
    user.authenticated = false
    user.id = 0
    user.name = ''
  }
// To log out, we just need to remove the authorization
To log out, we just need to remove the authorization
To log out we just need to remove the authorization
logout () {
    localStorage.removeItem('authorization')
    EventBus.$emit('authorization', { url: API_URL, authorization: null })
    user.authenticated = false
    user.id = 0
    user.name = ''
  }
logout ( ) { localStorage . removeItem ( 'authorization' ) EventBus . $emit ( 'authorization' , { url : API_URL , authorization : null } ) user . authenticated = false user . id = 0 user . name = '' }
To log out, we just need to remove the authorization
To log out we just need to remove the authorization
// TODO: tell server