Commit Graph

2 Commits

Author SHA1 Message Date
AlexeerCT
8d0a895c8d Refactor invoice edit flow: enhance error handling, load reference data, and improve token management 2025-12-29 12:53:06 -06:00
a5c1bab201 Refactor authentication handling and API calls in dashboard routes
- Centralized API URL configuration and token management in $lib/server/api.ts.
- Replaced direct token access with a centralized method for retrieving tokens.
- Updated all dashboard reference data routes to use authenticatedFetch for API calls, improving token refresh handling.
- Simplified login route by utilizing centralized token management functions.
- Added a new layout file for the dashboard to pass user and company data to the client.
2025-11-12 09:46:59 -06:00