-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomers
Description
File: app/api/auth.py
Line: ~13
Description:
The backend uses a simple in-memory dictionary to track user sessions (_sessions: dict[str, str] = {}). Whenever the nullfeed-backend service is restarted or updated, the dictionary is cleared, instantly invalidating all active sessions.
Impact:
Users are forcibly logged out and must re-authenticate (e.g., on their TVs or phones) every time the backend container restarts.
Suggested Fix:
Store sessions in a persistent datastore (such as Redis or a sessions table in the SQLite database), or migrate to stateless signed JWTs instead of random strings.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomers