ExternalEmailVerification
in package
FinalYes
Did the OAuth provider vouch for the e-mail address?
Hybridauth fills Profile::$emailVerified differently per provider:
- Google: the e-mail itself when
email_verifiedis true, otherwise'', - Facebook: always the e-mail (Facebook returns only confirmed addresses),
- Seznam: the raw
email_verifiedclaim (bool / "true" / 1), - providers without the field:
null.
Only a positive, unambiguous answer counts. A string that is an e-mail must equal the profile e-mail (case-insensitive) — a verified address that differs from the one we would pair by proves nothing about that one.
Table of Contents
Methods
- isVerified() : bool
Methods
isVerified()
public
static isVerified(mixed $emailVerified, string $email) : bool
Parameters
- $emailVerified : mixed
- $email : string