feat(app): configure and safely switch multi-address servers
This commit is contained in:
@@ -22,6 +22,14 @@ class ServerSession {
|
||||
|
||||
static String? get serverId => _serverId;
|
||||
|
||||
/// Drop the active trust selection without deleting any server's sign-in.
|
||||
static void clearSelection() {
|
||||
_generation++;
|
||||
_serverId = null;
|
||||
_origins = {};
|
||||
cookie = null;
|
||||
}
|
||||
|
||||
static String _scopeKey(String id) =>
|
||||
'pipelines.session.v2.${Uri.encodeComponent(id)}.cookie';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user