title: Laravel socialite login after successful auth not redirecting
body: <p>I have a laravel project that uses google to login. I am using socialite package from laravel. I can save the user's info in my database after they confirm in the google auth screen, but after that it will redirect to login always. It seems the <code>Auth::login($user)</code> is not working. Did I miss something?</p>
  <p>Here is my Login controller</p>
  <pre><code>public function redirectToProvider()
  {
      return Socialite::driver('google')-&gt;redirect();
  }
  
  
  public function handleProviderCallback()
  {
      try {
          $user = Socialite::driver('google')-&gt;user();
      } catch (\Exception $e) {
          return redirect('/login');
      }
  
      $existingUser = User::where('email', $user-&gt;email)-&gt;first();
      if($existingUser){
          //login the user
          \Auth::login($existingUser,true);
          return redirect('/home');
      } else {
          // create a new user
          $newUser                  = new User;
          $newUser-&gt;name            = $user-&gt;name;
          $newUser-&gt;email           = $user-&gt;email;
          $newUser-&gt;google_id       = $user-&gt;id;
          $newUser-&gt;avatar          = $user-&gt;avatar;
          $newUser-&gt;avatar_original = $user-&gt;avatar_original;
          $newUser-&gt;save();
  
          \Auth::login($newUser,true);
      }
      return redirect('/home');
  }
  </code></pre>
  <p>Route</p>
  <pre><code>Route::get('/redirect', 'Auth\LoginController@redirectToProvider');
  Route::get('/callback', 'Auth\LoginController@handleProviderCallback');
  </code></pre>
  <p>Authorized redirect URI's from google console</p>
  <pre><code>http://localhost:8000/callback
  http://localhost:8000/home
  </code></pre>
  <p>Reference in laravel login with google using socialite: <a href="https://medium.com/employbl/add-login-with-google-to-your-laravel-app-d2205f01b895" rel="nofollow noreferrer">link here</a></p>
  <p>Also when i check the network. the <code>/home</code> path is written as response 302.
  <a href="https://i.stack.imgur.com/2lvL4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2lvL4.png" alt="enter image description here" /></a></p>