SurfSense/surfsense_web/hooks
Claude d273f499a6
Refactor auth token usage to use AUTH_TOKEN_KEY constant
- Updated all hooks to import and use AUTH_TOKEN_KEY constant from lib/constants
- Updated all components to use AUTH_TOKEN_KEY instead of hardcoded string
- Updated all atoms to use AUTH_TOKEN_KEY
- Updated all app pages to use AUTH_TOKEN_KEY
- Made CORS origin configurable via CORS_ORIGINS environment variable
- Added CORS_ORIGINS to .env.example with documentation

This improves maintainability by centralizing the auth token key string,
preventing typos and making it easier to change the key name if needed.
2025-11-18 22:03:56 +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 Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-chat.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-chats.ts Extract AUTH_TOKEN_KEY constant to improve maintainability 2025-11-18 21:49:56 +00:00
use-connector-edit-page.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-connectors.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-document-by-chunk.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-document-types.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-documents.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00: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 Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-logs.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00: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 auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-search-space.ts Extract AUTH_TOKEN_KEY constant to improve maintainability 2025-11-18 21:49:56 +00:00
use-search-spaces.ts Refactor auth token usage to use AUTH_TOKEN_KEY constant 2025-11-18 22:03:56 +00:00
use-user.ts Extract AUTH_TOKEN_KEY constant to improve maintainability 2025-11-18 21:49:56 +00:00