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

Specifying a custom timeout causes an error #178

@0xdeafcafe

Description

@0xdeafcafe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions