Commit 4c1aeaf
committed
feat: Add JWT authentication to all API calls in settings and dashboard
- Fixed settings.tsx: Added Clerk auth tokens to connection-status, disconnect-linkedin, disconnect-github, and save-settings API calls
- Fixed dashboard.tsx: Added auth tokens to 7 API calls (loadScheduledPosts, checkAuthentication, loadUsage, loadUserSettings, loadPostHistory, loadStats, savePost)
- Updated .env.example with missing variables (CLERK_ISSUER, DEV_MODE, DATABASE_URL, ENCRYPTION_KEY, ADMIN_EMAIL)
- Fixed bare except clauses with debug logging in post_history.py and ai_service.py
- Removed deprecated dashboard-old.tsx
- Added errorHandler.ts utility for consistent frontend error handling
- Security: DEV_MODE bypass now requires explicit DEV_MODE=true1 parent 5c7263a commit 4c1aeaf
File tree
14 files changed
+701
-159
lines changed- backend
- middleware
- routes
- services
- web/src
- components
- dashboard
- ui
- pages
- utils
14 files changed
+701
-159
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
79 | 105 | | |
80 | 106 | | |
81 | 107 | | |
| |||
0 commit comments