From f903d54d525fac94512b96275ee9480b39b2d391 Mon Sep 17 00:00:00 2001 From: Krille Date: Fri, 8 Dec 2023 09:09:00 +0100 Subject: [PATCH] fix: Web SSO --- pubspec.yaml | 2 +- web/auth.html | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 6ab7c88b5..b93798740 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -47,7 +47,7 @@ dependencies: flutter_ringtone_player: ^4.0.0+2 flutter_secure_storage: ^9.0.0 flutter_typeahead: ^4.8.0 - flutter_web_auth_2: ^3.0.3 + flutter_web_auth_2: ^3.0.4 flutter_webrtc: ^0.9.46 future_loading_dialog: ^0.3.0 geolocator: ^7.6.2 diff --git a/web/auth.html b/web/auth.html index f1d2fc0bc..806485b73 100644 --- a/web/auth.html +++ b/web/auth.html @@ -1,14 +1,13 @@ - - Authentication complete - - -

Authentication is complete. If this does not happen automatically, please - close the window. - - + } else { + localStorage.setItem('flutter-web-auth-2', window.location.href); + } + window.close(); + \ No newline at end of file