Commit be57e18
committed
fix(cortex-tui): remove expired token to prevent 'Already Logged In' dialog
When a session expires, the credentials remain in storage which causes
the 'Already Logged In' dialog to appear incorrectly. This fix ensures
that expired credentials are deleted when detected, so users won't be
treated as logged in when their session has actually expired.
Changes:
- In start_login_flow: Delete stale credentials when session is expired
- In run_direct_provider: Delete stale credentials on token expiration
- In run_direct_provider: Delete invalidated credentials when server
rejects the authentication
Fixes the issue where users see 'Already Logged In' even though their
session has expired.1 parent 0d02025 commit be57e18
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| |||
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4692 | 4692 | | |
4693 | 4693 | | |
4694 | 4694 | | |
4695 | | - | |
| 4695 | + | |
4696 | 4696 | | |
4697 | 4697 | | |
4698 | 4698 | | |
| |||
4709 | 4709 | | |
4710 | 4710 | | |
4711 | 4711 | | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
4712 | 4718 | | |
4713 | 4719 | | |
4714 | 4720 | | |
| |||
0 commit comments