updated example, updated WebAuthenticationSession docs
This commit is contained in:
parent
c28355f11f
commit
c384bb9ec8
|
@ -27,7 +27,9 @@ Future main() async {
|
|||
await InAppWebViewController.setWebContentsDebuggingEnabled(true);
|
||||
}
|
||||
|
||||
// await localhostServer.start();
|
||||
if (!kIsWeb) {
|
||||
await localhostServer.start();
|
||||
}
|
||||
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue