fix: Use getToken() instead of localStorage.getItem('token')
All checks were successful
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 2026-04-13 15:27:17 +02:00
parent 8d9b5bf397
commit 146cd29234

View File

@ -410,7 +410,7 @@ export const api = {
// TODO: Security improvement - use session cookie instead of token in URL // 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 // 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 (token) params.append('token', token)
if (modules) { if (modules) {