AppleUserInfo
Immutable DTO with user info returned by Apple Sign In. Apple only sends the user's name on the FIRST authorization. Subsequent logins only return the `sub` (id) and email from the id_token.
AppleUserInfo::__construct()
public function __construct(string $id, ?string $email = null, ?string $name = null):Parameters
| Name | Type | Description |
|---|---|---|
| $id | string | |
?string | ||
| $name | ?string |
AppleUserInfo::toArray()
public function toArray(): arrayConvert to a plain array using Apple's id_token claim names.