veza/veza-backend-api/internal/handlers
senke 27517ae916 [INT-017] int: Add session management integration
- Fixed GetSessions handler to identify current session by comparing token hash
- Added session creation during token refresh to ensure sessions are tracked
- Sessions are now correctly identified as current in the frontend
- Updated Refresh handler to accept sessionService parameter

Files modified:
- veza-backend-api/internal/handlers/session.go
- veza-backend-api/internal/handlers/auth.go
- veza-backend-api/internal/api/router.go
- VEZA_COMPLETE_MVP_TODOLIST.json
2025-12-25 15:47:33 +01:00
..
analytics_handler.go [BE-API-036] be-api: Implement track analytics dashboard endpoint 2025-12-24 14:48:28 +01:00
api_flow_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
audit.go [INT-010] int: Add API documentation (OpenAPI/Swagger) 2025-12-25 15:23:19 +01:00
auth.go [INT-017] int: Add session management integration 2025-12-25 15:47:33 +01:00
auth_handler_test.go [BE-TEST-001] be-test: Add unit tests for auth handlers 2025-12-24 18:14:31 +01:00
auth_handler_test.go.bak adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
auth_integration_test.go [BE-TEST-008] test: Add integration tests for auth flow 2025-12-25 01:35:38 +01:00
avatar_handler.go [BE-API-022] be-api: Implement avatar delete endpoint 2025-12-24 11:36:15 +01:00
bitrate_handler.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
bitrate_handler_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
chat_handler.go [BE-API-006] be-api: Implement chat stats endpoint 2025-12-23 01:51:49 +01:00
chat_handler_test.go [BE-TEST-005] test: Add unit tests for chat handlers 2025-12-25 01:28:36 +01:00
comment_handler.go [INT-010] int: Add API documentation (OpenAPI/Swagger) 2025-12-25 15:23:19 +01:00
common.go [INT-007] int: Standardize pagination format 2025-12-25 15:14:26 +01:00
config_reload.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
csrf.go fix(MVP-006): Standardize environment variable names (VITE_API_BASE_URL → VITE_API_URL) 2025-12-22 22:56:37 +01:00
error_contract_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
error_response.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
health.go [BE-SVC-016] be-svc: Implement health check improvements 2025-12-24 17:00:53 +01:00
health_p1_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
health_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
hls_handler.go [BE-API-020] be-api: Implement HLS stream info endpoint 2025-12-24 11:32:50 +01:00
marketplace.go [BE-API-039] be-api: Implement marketplace order details endpoint 2025-12-24 15:00:32 +01:00
marketplace_test.go [BE-TEST-006] test: Add unit tests for marketplace handlers 2025-12-25 01:30:25 +01:00
metrics.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
metrics_aggregated.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
metrics_aggregated_test.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
metrics_test.go.disabled fix(backend-tests): enable room_handler_test and resolve metric collisions 2025-12-06 12:53:15 +01:00
notification_handlers.go [BE-API-016] be-api: Implement notifications endpoints 2025-12-24 11:23:24 +01:00
oauth_handlers.go [BE-API-042] be-api: Implement OAuth callback endpoint 2025-12-24 15:05:40 +01:00
password_reset_handler.go [BE-SEC-013] be-sec: Implement audit logging for security events 2025-12-24 12:27:39 +01:00
playback_analytics_handler.go stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
playback_websocket_handler.go [INT-014] int: Add WebSocket message format standardization 2025-12-25 15:35:38 +01:00
playlist_collaboration_integration_test.go [BE-TEST-010] test: Add integration tests for playlist collaboration 2025-12-25 01:39:43 +01:00
playlist_error_helper.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
playlist_error_helper_test.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
playlist_export_handler.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
playlist_handler.go [BE-API-005] be-api: Implement playlist recommendations endpoint 2025-12-24 14:41:33 +01:00
playlist_handler_integration_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
playlist_handler_test.go [BE-TEST-003] test: Add unit tests for playlist handlers 2025-12-25 01:25:33 +01:00
playlist_handlers_test.go.bak adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
playlist_track_handler_integration_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
profile_handler.go [INT-007] int: Standardize pagination format 2025-12-25 15:14:26 +01:00
profile_handler_integration_test.go [BE-API-002] api: Implement playlist collaborators endpoints 2025-12-23 01:41:43 +01:00
profile_handler_test.go [BE-TEST-007] test: Add unit tests for webhook handlers 2025-12-25 01:32:54 +01:00
profile_handler_test.go.disabled fix(backend-tests): enable room_handler_test and resolve metric collisions 2025-12-06 12:53:15 +01:00
response.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
role_handler.go [BE-API-008] be-api: Implement user search endpoint 2025-12-23 10:42:26 +01:00
room_handler.go [BE-API-012] be-api: Implement conversation update endpoint 2025-12-23 10:51:18 +01:00
room_handler_test.go [BE-TEST-007] test: Add unit tests for webhook handlers 2025-12-25 01:32:54 +01:00
search_handlers.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
session.go [INT-017] int: Add session management integration 2025-12-25 15:47:33 +01:00
settings_handler.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
social.go [BE-SEC-009] be-sec: Implement input sanitization 2025-12-24 12:15:25 +01:00
status_handler.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
system_metrics.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
system_metrics_test.go.disabled fix(backend-tests): enable room_handler_test and resolve metric collisions 2025-12-06 12:53:15 +01:00
track_handler_test.go.bak adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
two_factor_handler.go [BE-API-002] api: Implement playlist collaborators endpoints 2025-12-23 01:41:43 +01:00
upload.go [INT-016] int: Add authentication token refresh flow 2025-12-25 15:45:30 +01:00
validation_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
webhook_handlers.go [INT-010] int: Add API documentation (OpenAPI/Swagger) 2025-12-25 15:23:19 +01:00
webhook_handlers_test.go [BE-TEST-007] test: Add unit tests for webhook handlers 2025-12-25 01:32:54 +01:00