MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / get_current_active_user

Function get_current_active_user

backend/app/api/auth.py:112–117  ·  view source on GitHub ↗
(
    current_user: User = Depends(get_current_user)
)

Source from the content-addressed store, hash-verified

110 return user
111
112async def get_current_active_user(
113 current_user: User = Depends(get_current_user)
114):
115 if current_user.disabled:
116 raise HTTPException(status_code=400, detail="Inactive user")
117 return current_user
118
119@router.post("/register", response_model=User)
120async def register(user: UserCreate):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected