Open markonikolicdir opened 2 years ago
The same issue I have when I try to get the name from the user object.
$user = Socialite::driver("sign-in-with-apple")->user();
dd($user->getName()); // is empty
i belive you have to add the scopes, which is mentioned on the readme. Did this not work?
Socialite::driver("sign-in-with-apple")
->scopes(["name", "email"])
// ...
i belive you have to add the scopes, which is mentioned on the readme. Did this not work?
Socialite::driver("sign-in-with-apple") ->scopes(["name", "email"]) // ...
Thank you for your reply, I tested with and without the scopes when I try to get the name is always null.
hmmm, that is odd ... I will have to test this again.
I have the same issue when I use it like this: Socialite::driver('sign-in-with-apple')->userFromToken($data['access_token']);
This the user objected returned, I submitted the request with the scopes name and email.
I have the same issue when I use it like this: Socialite::driver('sign-in-with-apple')->userFromToken($data['access_token']);
Similar problem, Im getting name/email as nulls, even after I clear the app from my apple account, so it is the first time login ever.
Im retrieving user data with: $user = Socialite::driver("sign-in-with-apple")->user();
Anyone managed to get those data?
Hello,
I am using this lib and it is working very good but missing data about user when user logging from mobile app.
I saw in method
mapUserToObject
that you are taking from the requestfirstName
andlastName
.Is only solution for this to grab it from mobile app?
In Apple doc I didn't find
firstName
orlastName
.https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple