diff --git a/example/lib/main.dart b/example/lib/main.dart index 6d9e54e8..e233ac4e 100755 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -27,7 +27,9 @@ Future main() async { await InAppWebViewController.setWebContentsDebuggingEnabled(true); } - // await localhostServer.start(); + if (!kIsWeb) { + await localhostServer.start(); + } runApp(MyApp()); } diff --git a/lib/src/web_authentication_session/web_authenticate_session.dart b/lib/src/web_authentication_session/web_authenticate_session.dart index d920ca1f..cdfbb382 100755 --- a/lib/src/web_authentication_session/web_authenticate_session.dart +++ b/lib/src/web_authentication_session/web_authenticate_session.dart @@ -58,6 +58,12 @@ class WebAuthenticationSession implements Disposable { 'com.pichillilorenzo/flutter_webauthenticationsession'); ///Used to create and initialize a session. + /// + ///[url] represents a URL with the `http` or `https` scheme pointing to the authentication webpage. + /// + ///[callbackURLScheme] represents the custom URL scheme that the app expects in the callback URL. + /// + ///[onComplete] represents a completion handler the session calls when it completes successfully, or when the user cancels the session. static Future create( {required Uri url, String? callbackURLScheme,