The base package laravel/socialite has the method getEmail within the class AbstractUser. Within mapUserToObject it is returning userPrincipalName in the email field, therefor getEmail is returning an empty string.
This PR is to return the correct field.
Side note the userPrincipalName is return on #195 of the provider.
The base package
laravel/socialite
has the methodgetEmail
within the class AbstractUser. WithinmapUserToObject
it is returninguserPrincipalName
in the email field, thereforgetEmail
is returning an empty string.This PR is to return the correct field.
Side note the
userPrincipalName
is return on #195 of the provider.