updated example, updated WebAuthenticationSession docs

This commit is contained in:
Lorenzo Pichilli 2022-10-12 19:54:21 +02:00
parent c28355f11f
commit c384bb9ec8
2 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,9 @@ Future main() async {
await InAppWebViewController.setWebContentsDebuggingEnabled(true);
}
// await localhostServer.start();
if (!kIsWeb) {
await localhostServer.start();
}
runApp(MyApp());
}

View File

@ -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<WebAuthenticationSession> create(
{required Uri url,
String? callbackURLScheme,