fix: Use getToken() instead of localStorage.getItem('token')
Deploy Development / deploy (push) Successful in 48s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 15s

getToken() is the correct way to get auth token (imported from AuthContext)
This commit is contained in:
Lars committed 2026-04-13 15:27:17 +02:00
1 parent 8d9b5bf397
commit 146cd29234
1 file changed
+1 -1
+1 -1
View File
@@ -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) {