MCPcopy
hub / github.com/fastapi/fastapi / read_current_user

Function read_current_user

docs_src/security/tutorial007_py310.py:32–33  ·  view source on GitHub ↗
(username: str = Depends(get_current_username))

Source from the content-addressed store, hash-verified

30
31@app.get("/users/me")
32def read_current_user(username: str = Depends(get_current_username)):
33 return {"username": username}

Callers

nothing calls this directly

Calls 1

DependsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…