File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1539,12 +1539,12 @@ class RustdeskImpl {
15391539 Future <void > mainAccountAuth (
15401540 {required String op, required bool rememberMe, dynamic hint}) {
15411541 // Safari only allows auth popups while handling the original user gesture.
1542- // Call into JS synchronously so the web OIDC flow can pre-open the window.
1543- js.context.callMethod ('setByName' , [
1542+ // Use Future.sync so the JS call runs synchronously (pre-opening the OIDC
1543+ // window) while any interop error still surfaces as a Future error.
1544+ return Future .sync (() => js.context.callMethod ('setByName' , [
15441545 'account_auth' ,
15451546 jsonEncode ({'op' : op, 'remember' : rememberMe})
1546- ]);
1547- return Future .value ();
1547+ ]));
15481548 }
15491549
15501550 Future <void > mainAccountAuthCancel ({dynamic hint}) {
You can’t perform that action at this time.
0 commit comments