This commit is contained in:
Adrian Hopek 2022-03-21 14:28:25 +01:00
parent 8f9e006eac
commit 2ba066e91b

View File

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Toby\Infrastructure\Http\Controllers; namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Contracts\Auth\Factory as AuthFactory; use Illuminate\Contracts\Auth\Factory as AuthFactory;
use Illuminate\Contracts\Hashing\Hasher;
use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\Eloquent\ModelNotFoundException;
use Laravel\Socialite\SocialiteManager; use Laravel\Socialite\SocialiteManager;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
@ -18,7 +17,7 @@ class GoogleController extends Controller
return $socialiteManager->driver("google")->redirect(); return $socialiteManager->driver("google")->redirect();
} }
public function callback(AuthFactory $auth, SocialiteManager $socialiteManager, Hasher $hash): RedirectResponse public function callback(AuthFactory $auth, SocialiteManager $socialiteManager): RedirectResponse
{ {
$socialUser = $socialiteManager->driver("google")->user(); $socialUser = $socialiteManager->driver("google")->user();