(request: Request)
| 17 | |
| 18 | |
| 19 | def get_state(request: Request) -> State: |
| 20 | if not hasattr(request.state, "user"): |
| 21 | request.state.user = None |
| 22 | if not hasattr(request.state, "is_authenticated"): |
| 23 | request.state.is_authenticated = False |
| 24 | return cast(State, request.state) |
| 25 | |
| 26 | |
| 27 | def get_auth_state(request: Request) -> AuthState: |
nothing calls this directly
no outgoing calls
no test coverage detected