From bfb315cbfd7c94aa9a01fcbc33edda5c9ee1d8e6 Mon Sep 17 00:00:00 2001 From: Evan Sharp Date: Sat, 12 Apr 2025 10:46:07 -0700 Subject: [PATCH] Use correct google library property for first-name-only db field. Addressed issue #177. --- src/Libraries/GoogleOAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libraries/GoogleOAuth.php b/src/Libraries/GoogleOAuth.php index eb795d2..dbd7fb5 100644 --- a/src/Libraries/GoogleOAuth.php +++ b/src/Libraries/GoogleOAuth.php @@ -96,7 +96,7 @@ protected function setColumnsName(string $nameOfProcess, $userInfo): array { if ($nameOfProcess === 'syncingUserInfo') { return [ - $this->config->usersColumnsName['first_name'] => $userInfo->name, + $this->config->usersColumnsName['first_name'] => $userInfo->given_name, $this->config->usersColumnsName['last_name'] => $userInfo->family_name ?? null, $this->config->usersColumnsName['avatar'] => $userInfo->picture, ];