Commit c2ba78d
Handle 401 errors by showing authenticate button again (#102)
When the GitHub API returns a 401 (unauthorized) or 403 (forbidden) status,
the tool now:
- Removes the invalid token from localStorage
- Shows the authenticate button again
- Displays an error message prompting the user to re-authenticate
This improves the user experience when tokens expire or become invalid.
Co-authored-by: Claude <noreply@anthropic.com>1 parent d1a1d6c commit c2ba78d
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
358 | 364 | | |
359 | 365 | | |
360 | 366 | | |
| |||
424 | 430 | | |
425 | 431 | | |
426 | 432 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 433 | + | |
435 | 434 | | |
436 | 435 | | |
437 | 436 | | |
| |||
0 commit comments