]> _ Git - cubist_socialite.git/commitdiff
wip #4765
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Oct 2021 19:03:57 +0000 (21:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Oct 2021 19:03:57 +0000 (21:03 +0200)
src/Http/Controllers/SocialiteController.php

index a1d96a35388b40f3fdb69e6c6f5e1ec75c0d1d06..689633a1746dd1ff8ce39724eead11503dc05f52 100644 (file)
@@ -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