Skip to content

Commit 7ad0c54

Browse files
committed
set preferEphemeral to true for android and iOS to clear history after oauth
1 parent 3d11808 commit 7ad0c54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ class ClientIO extends ClientBase with ClientMixin {
310310
return FlutterWebAuth2.authenticate(
311311
url: url.toString(),
312312
callbackUrlScheme: callbackUrlScheme != null && Platform.isWindows ? callbackUrlScheme : "appwrite-callback-" + config['project']!,
313+
preferEphemeral: true,
313314
).then((value) async {
314315
Uri url = Uri.parse(value);
315316
final key = url.queryParameters['key'];

0 commit comments

Comments
 (0)