From 375e8caa0c1d4b28d10c0fb8c48e9acf37dc3e76 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 8 Oct 2021 18:50:32 +0200 Subject: [PATCH] wip #4765 --- src/CubistSocialiteAuthServiceProvider.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CubistSocialiteAuthServiceProvider.php b/src/CubistSocialiteAuthServiceProvider.php index 313d262..c6701e1 100644 --- a/src/CubistSocialiteAuthServiceProvider.php +++ b/src/CubistSocialiteAuthServiceProvider.php @@ -19,11 +19,11 @@ class CubistSocialiteAuthServiceProvider extends AuthServiceProvider $this->registerPolicies(); Auth::viaRequest('socialitegoogle', function (Request $request) { -// try { -// $user= User::fromProvider('google'); -// } catch (\Exception $e) { -// return null; -// } + try { + $user= User::fromProvider('google'); + } catch (\Exception $e) { + return null; + } }); } } \ No newline at end of file -- 2.39.5