mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-01-14 05:40:26 -06:00
This is only to avoid accidentally leaking any secrets from early development especially in the light of short-sha attacks.
27 lines
746 B
HTML
27 lines
746 B
HTML
<!-- See: https://pub.dev/packages/flutter_web_auth_2#web -->
|
|
<!DOCTYPE html>
|
|
|
|
<title>Authentication complete</title>
|
|
|
|
<p>Authentication is complete. If this does not happen automatically, please close the window.</p>
|
|
|
|
<script>
|
|
function postAuthenticationMessage() {
|
|
const message = {
|
|
'flutter-web-auth-2': window.location.href
|
|
};
|
|
|
|
if (window.opener) {
|
|
window.opener.postMessage(message, window.location.origin);
|
|
window.close();
|
|
} else if (window.parent && window.parent !== window) {
|
|
window.parent.postMessage(message, window.location.origin);
|
|
} else {
|
|
localStorage.setItem('flutter-web-auth-2', window.location.href);
|
|
window.close();
|
|
}
|
|
}
|
|
|
|
postAuthenticationMessage();
|
|
</script>
|