# retoor <retoor@molodetz.nl>

from fastapi import Request

from devplacepy.utils import get_current_user, client_ip


def owner_for(request: Request) -> tuple[str, str]:
    user = get_current_user(request)
    if user:
        return "user", user["uid"]
    return "guest", client_ip(request, default="anon")
