Buckets:

download
raw
303 Bytes
from fastapi import Request, HTTPException
from api_gateway.schemas.auth import UserContext
def get_current_user_context(request: Request) -> UserContext:
if not hasattr(request.state, "user"):
raise HTTPException(status_code=401, detail="Not authenticated")
return request.state.user

Xet Storage Details

Size:
303 Bytes
·
Xet hash:
e5d24426f1d2268cf708b481f59e9c20430ed082b35c66c939a3f1e8d89a18bc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.