Add session manage page

This commit is contained in:
2024-10-29 06:34:33 +00:00
committed by GitHub
parent c2d722836b
commit 57f54d319b
11 changed files with 653 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ class AuthInfo {
Future<void> checkSessionInfo() async {
final data = (await api.getToken()).unwrap();
_token = data.token;
listener.tryEmit("auth_token_updated", null);
final d = await device;
final cv = await clientVersion;
final cp = clientPlatform;
@@ -87,6 +88,7 @@ class AuthInfo {
clientVersion: ecv,
clientPlatform: ecp);
_token = re.unwrap();
listener.tryEmit("auth_token_updated", null);
} catch (e) {
_log.warning("Failed to update token:", e);
}