Commit 2f926d7
committed
fix(vercel): surface auth failures and handle uninstall flows
- return uninstall result from uninstallVercelIntegration so caller can
react when Vercel rejects the request due to invalid credentials.
- detect auth errors more robustly in isVercelAuthError by checking
statusCode fields on non-Axios error shapes.
- treat 401/403 from Vercel as soft-fail: log a warning and continue to
clean up local DB records instead of aborting, and surface authInvalid
flag to the route handler.
- log a warning when uninstall succeeds but the token is invalid; log
normal info for successful uninstalls.1 parent ceed97d commit 2f926d7
File tree
3 files changed
+33
-12
lines changed- apps/webapp/app
- models
- routes
3 files changed
+33
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
1440 | 1444 | | |
1441 | 1445 | | |
1442 | 1446 | | |
1443 | | - | |
| 1447 | + | |
1444 | 1448 | | |
1445 | 1449 | | |
1446 | 1450 | | |
| |||
1456 | 1460 | | |
1457 | 1461 | | |
1458 | 1462 | | |
| 1463 | + | |
1459 | 1464 | | |
| 1465 | + | |
1460 | 1466 | | |
1461 | 1467 | | |
1462 | 1468 | | |
| 1469 | + | |
1463 | 1470 | | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1464 | 1477 | | |
1465 | 1478 | | |
1466 | 1479 | | |
| |||
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
| |||
0 commit comments