- Updated `requireSession.js` to ensure `req.body` and `req.query` are always objects before access, improving robustness against malformed requests. - Changed API endpoint for login from `/api/sessions/login` to `/api/players/login` in `App.js`, updating related logging and state management to reflect the new structure. - Enhanced player fetching logic in `PlayerTab.jsx` to handle cases where GM is logged in, ensuring all players are fetched from the API. Added debug logging for better traceability. - Implemented fallback to stored player data if API fetch fails, ensuring a smoother user experience for regular players. - Updated local storage handling to accommodate changes in player data structure.
128 KiB
128 KiB