Home / Function/ read_users_me() — fastapi Function Reference

read_users_me() — fastapi Function Reference

Architecture documentation for the read_users_me() function in test_security_oauth2_optional.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  ef5b11a7_bca4_125d_0dd6_9aee884d3260["read_users_me()"]
  efcf9068_9c64_9327_7595_bfad37430bf7["test_security_oauth2_optional.py"]
  ef5b11a7_bca4_125d_0dd6_9aee884d3260 -->|defined in| efcf9068_9c64_9327_7595_bfad37430bf7
  style ef5b11a7_bca4_125d_0dd6_9aee884d3260 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_security_oauth2_optional.py lines 40–43

def read_users_me(current_user: Optional[User] = Depends(get_current_user)):
    if current_user is None:
        return {"msg": "Create an account first"}
    return current_user

Domain

Subdomains

Frequently Asked Questions

What does read_users_me() do?
read_users_me() is a function in the fastapi codebase, defined in tests/test_security_oauth2_optional.py.
Where is read_users_me() defined?
read_users_me() is defined in tests/test_security_oauth2_optional.py at line 40.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free