Merge pull request #2321 from krille-chan/krille/use-stable-web-auth

build: Switch back to stable web auth package
This commit is contained in:
Krille-chan 2025-11-07 17:04:11 +01:00 committed by GitHub
commit fd13b3c879
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;