def METHOD_NAME(sender, **kwargs):
    sociallogin = kwargs["sociallogin"]
    user = sociallogin.user
    extractor = get_data_extractor(sociallogin.account.provider)
    try:
        sociallogin_email = extractor.extract_email(sociallogin.account.extra_data)
    except NotImplementedError:
        sociallogin_email = None
    if sociallogin_email is not None:
        try:
            EmailAddress.objects.add_email(request=None, user=user, email=sociallogin_email, confirm=False)
        except IntegrityError:
            logging.exception(msg=f"Could not add email address {sociallogin_email} to user {user}")