File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
templates/flutter/lib/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -305,11 +305,15 @@ class ClientIO extends ClientBase with ClientMixin {
305
305
return res;
306
306
}
307
307
308
+ bool get _customSchemeAllowed => Platform.isWindows || Platform.isLinux;
309
+
308
310
@override
309
311
Future webAuth(Uri url, {String? callbackUrlScheme}) {
310
312
return FlutterWebAuth2.authenticate(
311
313
url: url.toString(),
312
- callbackUrlScheme: callbackUrlScheme != null && Platform.isWindows ? callbackUrlScheme : "appwrite-callback-" + config['project']!,
314
+ callbackUrlScheme: callbackUrlScheme != null && _customSchemeAllowed
315
+ ? callbackUrlScheme
316
+ : "{{spec .title | caseLower }}-callback-" + config['project']!,
313
317
preferEphemeral: true,
314
318
).then((value) async {
315
319
Uri url = Uri.parse(value);
You can’t perform that action at this time.
0 commit comments