This commit is contained in:
RustDesk 2026-04-22 01:29:15 +08:00 committed by GitHub
commit 5fd20f808c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1538,10 +1538,13 @@ class RustdeskImpl {
Future<void> mainAccountAuth(
{required String op, required bool rememberMe, dynamic hint}) {
return Future(() => js.context.callMethod('setByName', [
// Safari only allows auth popups while handling the original user gesture.
// Call into JS synchronously so the web OIDC flow can pre-open the window.
js.context.callMethod('setByName', [
'account_auth',
jsonEncode({'op': op, 'remember': rememberMe})
]));
]);
return Future.value();
}
Future<void> mainAccountAuthCancel({dynamic hint}) {