MCPcopy Index your code
hub / github.com/fastapi/fastapi / get_user

Function get_user

docs_src/security/tutorial003_an_py310.py:45–48  ·  view source on GitHub ↗
(db, username: str)

Source from the content-addressed store, hash-verified

43
44
45def get_user(db, username: str):
46 if username in db:
47 user_dict = db[username]
48 return UserInDB(**user_dict)
49
50
51def fake_decode_token(token):

Callers 1

fake_decode_tokenFunction · 0.70

Calls 1

UserInDBClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…