ruạṛ
from typing import Optional from fastapi import Request, Response from abc import ABC, abstractmethod from typing import Optional class AuthStrategy(ABC): @abstractmethod async def authenticate(self, request: Request) -> Optional[Response]: """Authenticate the request. Return Response if unauthorized, else None.""" pass
cải xoăn