diff --git a/src/Two/GoogleProvider.php b/src/Two/GoogleProvider.php index 9d764f43..fc08a998 100644 --- a/src/Two/GoogleProvider.php +++ b/src/Two/GoogleProvider.php @@ -81,7 +81,7 @@ protected function mapUserToObject(array $user) return (new User)->setRaw($user)->map([ 'id' => $user['id'], 'nickname' => Arr::get($user, 'nickname'), - 'name' => $user['name'], + 'name' => Arr::get($user, 'name'), 'email' => Arr::get($user, 'email'), 'avatar' => $avatarUrl, 'avatar_original' => preg_replace('/\?sz=([0-9]+)/', '', $avatarUrl),