onComplete property

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(), MacOSPlatform()])
WebAuthenticationSessionCompletionHandler? get onComplete

A completion handler the session calls when it completes successfully, or when the user cancels the session.

Officially Supported Platforms/Implementations:

  • iOS WKWebView
  • macOS WKWebView

Parameters - Officially Supported Platforms/Implementations:

  • url: all platforms
  • error: all platforms

Use the PlatformWebAuthenticationSession.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(platforms: [IOSPlatform(), MacOSPlatform()])
WebAuthenticationSessionCompletionHandler get onComplete =>
    throw UnimplementedError(
      'onComplete is not implemented on the current platform',
    );