removeHttpAuthCredential method
- required URLProtectionSpace protectionSpace,
- required URLCredential credential,
Removes an HTTP auth credential for that protectionSpace.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - URLCredentialStorage.remove)
- macOS WKWebView (Official API - URLCredentialStorage.remove)
- Linux WPE WebKit:
- Implemented using libsecret for secure storage.
Parameters - Officially Supported Platforms/Implementations:
protectionSpace: all platformscredential: all platforms
Use the PlatformHttpAuthCredentialDatabase.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> removeHttpAuthCredential({
required URLProtectionSpace protectionSpace,
required URLCredential credential,
}) => platform.removeHttpAuthCredential(
protectionSpace: protectionSpace,
credential: credential,
);