title: JWT Authentication is not properly removing token
body: <p>I am doing a Laravel 5 project and using JWT to authenticate users. Everything seemed to be working fine but then as I got deeper into the project I noticed that either the logout or the login don't seem to be working properly. What will happen is when I log in, it acts as if there is an invalid token error until the page is refreshed. Then it works fine. Upon logging out, and logging back in as a different user it act's as if user 1 is still logged in, until refreshing the page. Then it show's user 2 as logged in.</p>
  
  <p>Here is the function for login:</p>
  
  <pre><code>function login(email, password, onSuccess, onError){
  
      $http.post('/api/auth/login', 
      {
          email: email,
          password: password
      }).
      then(function(response) {
          localStorageService.remove('token');
          localStorageService.set('token', response.data.token);
          onSuccess(response);
  
      }, function(response) {
  
          onError(response);
  
      });
  
  }
  </code></pre>
  
  <p>and for logout:</p>
  
  <pre><code>function logout(){
      localStorageService.remove('token');
  }
  </code></pre>
  
  <p>another example, here I use JWT to check the current user and then return their profile information from the database:</p>
  
  <pre><code>public function index()
  {
      $currentUser = JWTAuth::parseToken()-&gt;authenticate();
  
      $profile = DB::select('SELECT * FROM profiles WHERE profiles.profileID = :id', ['id' =&gt; $currentUser["id"]]);
  
      return $profile;
  }
  </code></pre>
  
  <p>Any idea why the tokens are not being removed/given properly?</p>