This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Description
I'm specifying a custom timeout like so:
const customTimeout = 60;
window.u2f.sign(appId, challenge, registeredKeys, res => {
const signRes = res as SignResponse;
if (signRes.clientData) {
resolve(signRes);
return;
}
const err = log.info('u2f_signing_failed', null, res);
reject(err);
}, customTimeout);
However, when the timeout is hit it throws this error to the console:
Error in event handler for (unknown): TypeError: Cannot read property 'write' of undefined