From 146cd292340eb7f6f7f1ed68e3e57e6f8b18e778 Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 13 Apr 2026 15:27:17 +0200 Subject: [PATCH] fix: Use getToken() instead of localStorage.getItem('token') getToken() is the correct way to get auth token (imported from AuthContext) --- frontend/src/utils/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/api.js b/frontend/src/utils/api.js index 287a975..05eaa19 100644 --- a/frontend/src/utils/api.js +++ b/frontend/src/utils/api.js @@ -410,7 +410,7 @@ export const api = { // TODO: Security improvement - use session cookie instead of token in URL // For now, send token as query param since EventSource doesn't support custom headers - const token = localStorage.getItem('token') + const token = getToken() if (token) params.append('token', token) if (modules) {