webAuthnRevoke method
Revoke WebAuthn/FIDO.
Implementation
Future<Map<String, dynamic>?> webAuthnRevoke() async {
final json = await _channel.invokeMethod<String>(
WebAuthnMethods.webAuthnRevoke.name,
{},
).catchError((error) {
return throw GigyaResponse.fromJson(decodeError(error));
}).timeout(getTimeout(Methods.sendRequest), onTimeout: () {
debugPrint('A timeout that was defined in the request is reached');
return jsonEncode(timeoutError());
});
return json != null ? jsonDecode(json) : null;
}