From: Vincent Vanwaelscappel Date: Thu, 7 Oct 2021 19:03:57 +0000 (+0200) Subject: wip #4765 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e9ed0a9b61745035cdbd6af784d4790f09085862;p=cubist_socialite.git wip #4765 --- 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