Re: [webauthn] Authenticator disconnect event

No word on whether we will add something like this, just brainstorming a bit... How about instead exposing this as a Promise on [`PublicKeyCredential`][pkc]? The using code could be something like:

```
navigator.credentials.get(...)
  .then(pkc => {
    verifyWithServer(pkc).then(() => {
      pkc.getDisconnectListener().then(event => {
        logOut();
     });
   });
});
```

I.e., `getDisconnectListener` returns a Promise that resolves when the authenticator that produced `pkc.response` is disconnected (which could be never).

[pkc]: https://w3c.github.io/webauthn/#publickeycredential

-- 
GitHub Notification of comment by emlun
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1107#issuecomment-437957080 using your GitHub account

Received on Monday, 12 November 2018 17:05:40 UTC