Skip to content

Commit d632700

Browse files
Merge pull request #723 from ThexXTURBOXx/master
2 parents 3a10f1f + df41d44 commit d632700

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

templates/flutter/lib/src/client_io.dart.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ class ClientIO extends ClientBase with ClientMixin {
314314
callbackUrlScheme: callbackUrlScheme != null && _customSchemeAllowed
315315
? callbackUrlScheme
316316
: "{{spec.title | caseLower}}-callback-" + config['project']!,
317-
preferEphemeral: true,
317+
options: const FlutterWebAuth2Options(
318+
intentFlags: ephemeralIntentFlags,
319+
),
318320
).then((value) async {
319321
Uri url = Uri.parse(value);
320322
final key = url.queryParameters['key'];

templates/flutter/pubspec.yaml.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ platforms:
1313
web:
1414
windows:
1515
environment:
16-
sdk: '>=2.17.0 <3.0.0'
16+
sdk: '>=2.17.0 <4.0.0'
1717
1818
dependencies:
1919
flutter:
2020
sdk: flutter
2121
cookie_jar: ^4.0.3
2222
device_info_plus: ^9.0.2
23-
flutter_web_auth_2: ^2.1.4
24-
http: '>=0.13.6 <1.0.1'
23+
flutter_web_auth_2: ^3.0.0
24+
http: '>=0.13.6 <2.0.0'
2525
package_info_plus: ^4.0.2
2626
path_provider: ^2.0.15
2727
web_socket_channel: ^2.4.0
@@ -32,4 +32,4 @@ dev_dependencies:
3232
flutter_lints: ^2.0.1
3333
flutter_test:
3434
sdk: flutter
35-
mockito: ^5.4.0
35+
mockito: ^5.4.0

0 commit comments

Comments
 (0)