fix: Web SSO
parent
73038ad5d1
commit
f903d54d52
@ -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…
Reference in New Issue