mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-04 16:46:08 +02:00
feat: implement session persistence with "Remember Me" functionality and logout support
This commit is contained in:
@@ -43,6 +43,16 @@
|
||||
- Connection state is color-coded: green (Connected), red (Disconnected), yellow (transitional states like Connecting, Reconnecting, Authenticating)
|
||||
- Current channel shows its type: `#channel - public` or `#channel - private`
|
||||
|
||||
### Remember Me (Session Persistence)
|
||||
|
||||
- "Remember me" checkbox in the connect dialog — saves a 30-day refresh token so users can reconnect without entering their password
|
||||
- Saved servers with active sessions show `[session]` indicator in the connect dialog and saved servers list
|
||||
- Token-based login: selecting a saved server with a session lets you click Login with an empty password
|
||||
- Graceful expiry handling: if the saved session is expired or revoked, shows an error and prompts for password
|
||||
- Refresh token rotation: rotated tokens are automatically persisted to config so the session stays valid across refreshes
|
||||
- New "Logout" menu item (Server menu): revokes the refresh token server-side and clears the saved session
|
||||
- Removed dead `SavedServer.Token` field (stored 15-min access token that was never read back)
|
||||
|
||||
### #general Channel Protection
|
||||
|
||||
- `#general` channel is now auto-recreated if somehow missing (both in `GetChannels` endpoint and `JoinChannel` flow)
|
||||
|
||||
Reference in New Issue
Block a user