removeHttpAuthCredentials method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), LinuxPlatform()])
Future<void> removeHttpAuthCredentials({
  1. required URLProtectionSpace protectionSpace,
})

Removes all the HTTP auth credentials saved for that protectionSpace.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Linux WPE WebKit

Parameters - Officially Supported Platforms/Implementations:

  • protectionSpace: all platforms

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(),
    MacOSPlatform(),
    LinuxPlatform(),
  ],
)
Future<void> removeHttpAuthCredentials({
  required URLProtectionSpace protectionSpace,
}) {
  throw UnimplementedError(
    'removeHttpAuthCredentials is not implemented on the current platform',
  );
}