resources/assets/js/components/auth/index.js
// To log out, we just need to remove the token
To log out, we just need to remove the token
To log out we just need to remove the token
logout(redirect) {
      localStorage.removeItem('id_token')
      localStorage.removeItem('access_token')
      this.user.authenticated = false
      if(redirect) {
        router.push(redirect);
      }
    }
logout ( redirect ) { localStorage . removeItem ( 'id_token' ) localStorage . removeItem ( 'access_token' ) this . user . authenticated = false if ( redirect ) { router . push ( redirect ) ; } }
To log out, we just need to remove the token
To log out we just need to remove the token
/*if (localStorage.removeItem('id_token') == null ||
     localStorage.removeItem('access_token') == null) {
      console.log("user não está logged in");
    }else{*/