from django.conf import settings

from .social import enabled_social_providers


def social_auth(request):
    providers = enabled_social_providers()
    return {
        "social_providers": providers,
        "social_auth_enabled": bool(providers),
        "site_domain": settings.SITE_DOMAIN,
    }
