Commit Graph

3 Commits

Author SHA1 Message Date
Chaos
4ec8e88e58 refactor(auth): implement token-based authentication with JWT parsing
- Replace authStore with tokenService for authentication management
- Add JWT parsing utility to extract user info from tokens
- Update login flow to use cookie-based token storage
- Modify logout to properly clear auth state and cookies
- Integrate user data into page context for SSR compatibility
- Remove deprecated authStore and related localStorage logic
- Add cookie constants for consistent token handling
- Implement server-side token validation in hooks
- Update HTTP client to use token from cookies instead of store
- Refactor error handling to use unified ApiError class
- Replace manual redirect logic with resolved paths
- Improve type safety with explicit user and auth interfaces
- Add toast notifications for login/logout feedback
- Remove unused sidebar store and related UI logic
- Migrate theme handling to use cookies and context
- Update icon definitions and component references
- Clean up legacy code and unused imports
2025-11-25 16:53:48 +08:00
chaos
bace501527 chore(git): 配置 GitToolBox 提交验证设置
- 启用提交消息问题键验证
- 启用提交消息验证功能
- 添加项目级别的 GitToolBox 配置文件
2025-11-22 05:32:32 +08:00
Chaos
6273f8f714 初始化项目:添加基础SvelteKit配置、依赖和IDE文件 2025-11-19 19:52:17 +08:00