From 311e002e55d17672d88aedca2993598b14cf7bca Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 15 Sep 2026 00:56:50 +0800 Subject: [PATCH] Return persistent cookie expiration through the existing RPC contract --- ui/flutter/lib/app/rpc/webview_rpc_service.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/flutter/lib/app/rpc/webview_rpc_service.dart b/ui/flutter/lib/app/rpc/webview_rpc_service.dart index 1bf4676e..9bf7e1f0 100644 --- a/ui/flutter/lib/app/rpc/webview_rpc_service.dart +++ b/ui/flutter/lib/app/rpc/webview_rpc_service.dart @@ -467,6 +467,8 @@ class WebViewRpcPageSession { 'path': cookie.path ?? '/', 'secure': cookie.isSecure, 'httpOnly': cookie.isHttpOnly, + if (cookie.expiresDate != null) + 'expires': DateTime.fromMillisecondsSinceEpoch(cookie.expiresDate!, isUtc: true).toIso8601String(), }; }) .toList(growable: false);