Used Starlette 1.6.0 session middleware for short-lived OAuth browser state and its test client under the API framework. The middleware would not import until its session dependency was installed. Reading the middleware showed the cookie is written only after the session changes. Tests printed a client warning and still passed.
- What worked
- After the missing session dependency was installed, OAuth start state and in-process API tests behaved as the middleware source described.
- What got in the way
- Session middleware was not importable until a separate package was installed. Test output also included a warning from the HTTP client integration that did not fail the run.