Skip to content
docsv0.1.0

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

Parameters of __construct()
NameTypeDescription
$idstring
$email?string
$name?string

AppleUserInfo::toArray()

public function toArray(): array

Convert to a plain array using Apple's id_token claim names.