secure-payment-confirmation icon indicating copy to clipboard operation
secure-payment-confirmation copied to clipboard

Implementing a time out for fallback UX

Open ianbjacobs opened this issue 11 months ago • 1 comments

A developer has told me that it would be useful to close the fallback UX after a timeout rather than leave it open indefinitely (e.g., if the UX has created confusion and the user simply leaves the window).

@stephenmcgruer pointed out that WebAuthn encourages [1] developers to leverage the DOM specification's AbortController interface [2] and thought we might be able to do the same thing for this use case.

[1] https://www.w3.org/TR/webauthn-2/#sctn-abortoperation [2] https://dom.spec.whatwg.org/#abortcontroller

ianbjacobs avatar Jul 20 '23 20:07 ianbjacobs