onRequestCanceled property

EventStream<int> get onRequestCanceled

Fires when a onCreateRequest or onGetRequest event is canceled (because the WebAuthn request was aborted by the caller, or because it timed out). When receiving this event, the extension should cancel processing of the corresponding request on the client side. Extensions cannot complete a request once it has been canceled.

Implementation

EventStream<int> get onRequestCanceled =>
    $js.chrome.webAuthenticationProxy.onRequestCanceled
        .asStream(($c) => (int requestId) {
              return $c(requestId);
            }.toJS);