SurfSense/surfsense_web/hooks
Claude f8fc3fa9c4
Fix complete session handling for 401 errors in all hooks
- Add baseApiService token clearing on 401 in use-user.ts
- Add baseApiService token clearing on 401 in use-chats.ts (both fetchChats and deleteChat)
- Add baseApiService token clearing on 401 in use-search-space.ts
- Update all redirects to /login?error=session_expired for better UX
- Add session_expired error message to auth-errors.ts

This ensures consistent session invalidation across all API hooks,
preventing stale auth state in the baseApiService singleton.
2025-11-18 20:30:37 +00:00
..
index.ts chore: Updated UserRead schema to include pages_limit and pages_used fields 2025-11-03 22:34:37 -08:00
use-api-key.ts Biome: fixes for hooks & lib directory 2025-07-27 10:44:27 -07:00
use-chat.ts Merge pull request #430 from CREDO23/feat/chat-pannel 2025-11-11 17:04:39 -08:00
use-chats.ts Fix complete session handling for 401 errors in all hooks 2025-11-18 20:30:37 +00:00
use-connector-edit-page.ts refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
use-connectors.ts refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
use-document-by-chunk.ts feat: added elasticsearch connector 2025-10-12 09:39:04 +05:30
use-document-types.ts refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
use-documents.ts refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
use-github-stars.ts feat: Implement LLM configuration validation in create and update routes 2025-11-05 12:15:05 -08:00
use-llm-configs.ts feat: added global llm configurations 2025-11-14 21:53:46 -08:00
use-logs.ts refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
use-media-query.ts biome checks 2025-10-04 12:14:14 -07:00
use-mobile.ts Initial formatting using biome 2025-07-27 10:05:37 -07:00
use-search-source-connectors.ts refactor: update API endpoint paths to remove trailing slashes 2025-10-31 01:33:01 -07:00
use-search-space.ts Fix complete session handling for 401 errors in all hooks 2025-11-18 20:30:37 +00:00
use-search-spaces.ts Biome: fixes for hooks & lib directory 2025-07-27 10:44:27 -07:00
use-user.ts Fix complete session handling for 401 errors in all hooks 2025-11-18 20:30:37 +00:00