build: Switch back to stable web auth package

This commit is contained in:
krille-chan 2025-11-07 16:39:22 +01:00
commit 5ed33122b8
No known key found for this signature in database
8 changed files with 28 additions and 16 deletions

View file

@ -145,7 +145,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
final result = await FlutterWebAuth2.authenticate(
url: url.toString(),
callbackUrlScheme: urlScheme,
options: const FlutterWebAuth2Options(),
options: FlutterWebAuth2Options(useWebview: PlatformInfos.isMobile),
);
final token = Uri.parse(result).queryParameters['loginToken'];
if (token?.isEmpty ?? false) return;