datamweb / shield-oauth

OAuth for CodeIgniter Shield
https://www.shield-oauth.codeigniter4.ir/
MIT License
56 stars 16 forks source link

Bug: Error when syncingUserInfo #109

Closed warcooft closed 2 months ago

warcooft commented 3 months ago

PHP Version

8.3

CodeIgniter4 Version

4.4.8

Shield Version

1.0.2

Shield OAuth Version?

dev-develop

Which operating systems have you tested for this bug?

macOS

Which server did you use?

cli-server (PHP built-in webserver)

Database

PostgreSQL 15.4

Did you add customize OAuth?

No

What happened?

when logging in using google oauth I got the error as follow:

Undefined property: stdClass:: $family_name
Screenshot 2024-04-12 at 17 59 04

Steps to Reproduce

click google-oauth button

Expected Output

because the family name property was not found, perhaps it could be replaced with the given_name property or not include both because it is already represented by the name property

Anything else?

No response