diff --git a/templates/flutter/lib/src/client_io.dart.twig b/templates/flutter/lib/src/client_io.dart.twig index 585750759..371dd51ee 100644 --- a/templates/flutter/lib/src/client_io.dart.twig +++ b/templates/flutter/lib/src/client_io.dart.twig @@ -314,7 +314,9 @@ class ClientIO extends ClientBase with ClientMixin { callbackUrlScheme: callbackUrlScheme != null && _customSchemeAllowed ? callbackUrlScheme : "{{spec.title | caseLower}}-callback-" + config['project']!, - preferEphemeral: true, + options: const FlutterWebAuth2Options( + intentFlags: ephemeralIntentFlags, + ), ).then((value) async { Uri url = Uri.parse(value); final key = url.queryParameters['key']; diff --git a/templates/flutter/pubspec.yaml.twig b/templates/flutter/pubspec.yaml.twig index c2463e971..5b0137296 100644 --- a/templates/flutter/pubspec.yaml.twig +++ b/templates/flutter/pubspec.yaml.twig @@ -13,15 +13,15 @@ platforms: web: windows: environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '>=2.17.0 <4.0.0' dependencies: flutter: sdk: flutter cookie_jar: ^4.0.3 device_info_plus: ^9.0.2 - flutter_web_auth_2: ^2.1.4 - http: '>=0.13.6 <1.0.1' + flutter_web_auth_2: ^3.0.0 + http: '>=0.13.6 <2.0.0' package_info_plus: ^4.0.2 path_provider: ^2.0.15 web_socket_channel: ^2.4.0 @@ -32,4 +32,4 @@ dev_dependencies: flutter_lints: ^2.0.1 flutter_test: sdk: flutter - mockito: ^5.4.0 \ No newline at end of file + mockito: ^5.4.0