mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-24 23:41:10 +02:00
- 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.
9 lines
215 B
TypeScript
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";
|