removeHttpAuthCredentials method

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

Future<void> removeHttpAuthCredentials({
  required URLProtectionSpace protectionSpace,
}) => platform.removeHttpAuthCredentials(protectionSpace: protectionSpace);