removeHttpAuthCredentials method
Removes all the HTTP auth credentials saved for that protectionSpace
.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
Implementation
@override
Future<void> removeHttpAuthCredentials(
{required URLProtectionSpace protectionSpace}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("host", () => protectionSpace.host);
args.putIfAbsent("protocol", () => protectionSpace.protocol);
args.putIfAbsent("realm", () => protectionSpace.realm);
args.putIfAbsent("port", () => protectionSpace.port);
await channel?.invokeMethod('removeHttpAuthCredentials', args);
}