MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / current_user

Function current_user

tests/test_fastapi_users.py:45–46  ·  view source on GitHub ↗
(user: UserModel = Depends(fastapi_users.current_user()))

Source from the content-addressed store, hash-verified

43
44 @app.get("/current-user", response_model=User)
45 def current_user(user: UserModel = Depends(fastapi_users.current_user())):
46 return user
47
48 @app.get("/current-active-user", response_model=User)
49 def current_active_user(

Callers

nothing calls this directly

Calls 1

current_userMethod · 0.80

Tested by

no test coverage detected