From e9ed0a9b61745035cdbd6af784d4790f09085862 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Oct 2021 21:03:57 +0200 Subject: [PATCH] wip #4765 --- src/Http/Controllers/SocialiteController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Http/Controllers/SocialiteController.php b/src/Http/Controllers/SocialiteController.php index a1d96a3..689633a 100644 --- a/src/Http/Controllers/SocialiteController.php +++ b/src/Http/Controllers/SocialiteController.php @@ -29,6 +29,9 @@ class SocialiteController extends Controller public function callback() { - redirect('/'); + $provider = request()->provider; + if (in_array($provider, $this->providers)) { + dd(Socialite::driver($provider)->user()); + } } } \ No newline at end of file -- 2.39.5