🔧 Title: Add session management with active session listing and revocation
📘 Description
Users have no visibility into their active sessions and cannot revoke a session if their device is lost or stolen. This is a basic security feature for any financial application.
✅ Acceptance Criteria
🔧 Context: backend/src/routes/auth.js; frontend/src/components/AccountSettings.jsx.
🔧 Title: Add session management with active session listing and revocation
📘 Description
Users have no visibility into their active sessions and cannot revoke a session if their device is lost or stolen. This is a basic security feature for any financial application.
✅ Acceptance Criteria
Sessiondatabase modelGET /api/auth/sessionsendpoint listing all active sessionsDELETE /api/auth/sessions/:idto revoke a specific sessionDELETE /api/auth/sessionsto revoke all sessions (logout everywhere)AccountSettings.jsx🔧 Context:
backend/src/routes/auth.js;frontend/src/components/AccountSettings.jsx.