fix: Web SSO

pull/687/head
Krille 1 year 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_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

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