fix: Web SSO

pull/687/head
Krille 2 years ago
parent 73038ad5d1
commit f903d54d52
No known key found for this signature in database

@ -47,7 +47,7 @@ dependencies:
flutter_ringtone_player: ^4.0.0+2 flutter_ringtone_player: ^4.0.0+2
flutter_secure_storage: ^9.0.0 flutter_secure_storage: ^9.0.0
flutter_typeahead: ^4.8.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 flutter_webrtc: ^0.9.46
future_loading_dialog: ^0.3.0 future_loading_dialog: ^0.3.0
geolocator: ^7.6.2 geolocator: ^7.6.2

@ -1,14 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<head>
<title>Authentication complete</title> <title>Authentication complete</title>
</head> <p>Authentication is complete. If this does not happen automatically, please close the window.</p>
<body>
<p>Authentication is complete. If this does not happen automatically, please
close the window.
<script> <script>
if (window.opener) {
window.opener.postMessage({ window.opener.postMessage({
'flutter-web-auth-2': window.location.href 'flutter-web-auth-2': window.location.href
}, window.location.origin); }, window.location.origin);
} else {
localStorage.setItem('flutter-web-auth-2', window.location.href);
}
window.close(); window.close();
</script> </script>
</body>

Loading…
Cancel
Save