fix(backend): Refactor OIDC callback and auth dependency to correctly handle cookies and prefix all API routes with /api/v1.

This commit is contained in:
Yunxiao Xu
2026-02-12 01:26:28 -08:00
parent 49a9da7c0c
commit 0dfdef738d
6 changed files with 51 additions and 29 deletions

View File

@@ -46,7 +46,7 @@ def test_persistence_integration_success(auth_header, mock_user):
mock_session.get.return_value = mock_conv
# Act
with client.stream("POST", "/chat/stream",
with client.stream("POST", "/api/v1/chat/stream",
json={"message": "persistence test", "thread_id": "t1"},
headers=auth_header) as response:
assert response.status_code == 200