from typing import Optional


def load_current_user(request_context) -> Optional[str]:
    """Load the current user from the request."""

    if (authorizer := request_context.get("authorizer")) is not None:
        claims = authorizer.get("claims", {})

        return claims.get("sub")

    return None