isAvailable static method

Future<bool> isAvailable()

Returns true if ASWebAuthenticationSession or SFAuthenticationSession is available. Otherwise returns false.

Officially Supported Platforms/Implementations:

  • iOS WKWebView
  • macOS WKWebView

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

Implementation

static Future<bool> isAvailable() =>
    PlatformWebAuthenticationSession.static().isAvailable();