fix: Web SSO

This commit is contained in:
Krille 2023-12-08 09:09:00 +01:00
commit f903d54d52
No known key found for this signature in database
2 changed files with 10 additions and 11 deletions

View file

@ -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>