title: Laravel 7: custom guard authentication does not work as expected
body: <p>I have a multiauth project. I have the default authentication and a custom guard. At the login controller, when I make the login attempt, it authenticates as expected. However, when it gets to the homepage, the custom guard is not logged in anymore.</p>
  <p>Users that use the custom guard already log in through an external API, so i don't want them on my users table. I just need a couple of fields to show them some content.</p>
  <p>LoginController.php (Up to the return, attempt method returns TRUE)</p>
  <pre><code>...irrelevant code...
  Auth::guard('ivao')-&gt;attempt(array('vid' =&gt; $user_array-&gt;vid, 'name' =&gt; $user_array-&gt;name, 'surname' =&gt; $user_array-&gt;surname), true);
  Cookie::queue(Cookie::forever($this-&gt;cookie_name, $_COOKIE['ivao_token']));
  Cookie::queue(Cookie::forever('vid', $user_array-&gt;vid));
  
  return redirect('/');
  ...irrelevant code...
  </code></pre>
  <p>CustomProvider.php</p>
  <pre><code>class CustomUserProvider extends ServiceProvider implements UserProvider
  {
      public function retrieveById($identifier)
      {
  
      }
      public function retrieveByToken($identifier, $token)
      {
          if(Cookie::get('rememberToken') == $token)
          {
              $user = new ApiUser();
              $user-&gt;vid = Cookie::get('vid');
              $user-&gt;name = Cookie::get('name');
              $user-&gt;surname = Cookie::get('surname');
  
              return $user;
          }
          else return NULL;
      }
      public function updateRememberToken(UserContract $user, $token)
      {
          if(Cookie::get('rememberToken') == $token)
          {
              Cookie::queue(Cookie::forever('vid', $user-&gt;vid));
              Cookie::queue(Cookie::forever('name', $user-&gt;name));
              Cookie::queue(Cookie::forever('surname', $user-&gt;surname));
              Cookie::queue(Cookie::forever('rememberToken'), $token);
  
              return TRUE;
          }
          else return FALSE;
      }
      public function retrieveByCredentials(array $credentials)
      {
          $user = new ApiUser();
          $user-&gt;vid = $credentials['vid'];
          $user-&gt;name = $credentials['name'];
          $user-&gt;surname = $credentials['surname'];
  
          return $user;
      }
      public function validateCredentials(UserContract $user, array $credentials)
      {
          return TRUE; //already validated at the API
      }
  }
  </code></pre>
  <p>Homepage Controller (Here both check methods return FALSE)</p>
  <pre><code>class PagesController extends Controller
  {
      public function index($folder= '', $page= 'inicio')
      {
          if( !(Auth::check() || Auth::guard('ivao')-&gt;check()) ) return redirect('/login');
  
  ...irrelevant code...
  </code></pre>
  <p>Please let me know if you need further information. Hope someone can help. I'm stuck. Thanks.</p>