File tree Expand file tree Collapse file tree
flutter_web_auth_2/lib/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,16 @@ const _defaultLandingPage = '''
3232 font-size: 2rem;
3333 }
3434 </style>
35+ <script>
36+ setTimeout(function() {
37+ window.close()
38+ }, 1);
39+ </script>
3540</head>
3641<body>
3742 <main>
38- <div id="text">You may now close this page</div>
43+ <div id="text">This page should automatically close.
44+ You may also close this page manually now.</div>
3945 </main>
4046</body>
4147</html>
@@ -114,7 +120,7 @@ class FlutterWebAuth2Options {
114120 /// authentication process.
115121 final int timeout;
116122
117- /// **Only has an effect on Linux and Windows!**
123+ /// **Only has an effect on Linux and Windows with [useWebview] = `false` !**
118124 /// Can be used to customise the landing page which tells the user that the
119125 /// authentication was successful. It is the literal HTML source code which
120126 /// will be displayed using a `HttpServer` .
You can’t perform that action at this time.
0 commit comments