From 4280d5ab0cbd5cc3500188ea58fc77ef7a89fe59 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 10 Jun 2021 14:25:01 +1000 Subject: [PATCH] Fixes for Google Oauth --- app/Libraries/OAuth/OAuth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Libraries/OAuth/OAuth.php b/app/Libraries/OAuth/OAuth.php index 234f6f841177..de61d5c92e38 100644 --- a/app/Libraries/OAuth/OAuth.php +++ b/app/Libraries/OAuth/OAuth.php @@ -34,11 +34,11 @@ class OAuth * @param Socialite $user * @return bool|\App\Models\User|\App\Libraries\App\Models\User|null */ - public static function handleAuth(Socialite $user) + public static function handleAuth($socialite_user) { /** 1. Ensure user arrives on the correct provider **/ $query = [ - 'oauth_user_id' =>$user->getId(), + 'oauth_user_id' =>$socialite_user->getId(), 'oauth_provider_id'=>$provider, ];