from rest_framework.authentication import SessionAuthentication

class CsrfExemptSessionAuthentication(SessionAuthentication):
    """
    SessionAuthentication subclass that does not enforce CSRF validation.
    Enables native mobile applications to use session cookies without requiring
    browser-specific CSRF tokens.
    """
    def enforce_csrf(self, request):
        return
