// When a user is not logged in and a matching SocialAccount exists,
// Simply log the user into the application.
if (!$isLoggedIn && $socialAccount !== null) {
- $this->loginService->login($socialAccount->user, $socialAccount);
+ $this->loginService->login($socialAccount->user, $socialDriver);
return redirect()->intended('/');
}