SurfSense/surfsense_web/lib/constants.ts
Claude 1a83d6a3ef
Extract AUTH_TOKEN_KEY constant to improve maintainability
- Create lib/constants.ts with AUTH_TOKEN_KEY
- Update auth-utils.ts to use constant
- Update use-user.ts, use-chats.ts, use-search-space.ts
- Update base-api.service.ts

This prevents typos and makes future updates simpler
across the application per PR review feedback.
2025-11-18 21:49:56 +00:00

9 lines
215 B
TypeScript

/**
* Application-wide constants
*/
/**
* Local storage key for the authentication bearer token
* Used across auth-utils, hooks, and base-api.service
*/
export const AUTH_TOKEN_KEY = "surfsense_bearer_token";