multiple calling of startAuthentication in conditional autofill causes reset to clear webauthnAbortService
See original GitHub issuewhen startAuthentication is called multiple times in succession, the createNewAbortSignal is called 3 times options.signal = webauthnAbortService.createNewAbortSignal();
However the corresponding reset is called later also 3 times causing WebAuthnAbortService.controller to be undefined. i.e. the abort controller of the last call is lost webauthnAbortService.reset();
Here is my proposal to fix this.
- change the reset method to accept an abortController
reset(abortSignal) {
if (this.controller?.signal === abortSignal) {
this.controller = undefined;
}
}
- call the reset method with the associated controller, so this way the controller is not overriden
webauthnAbortService.reset(options.signal);
Here is an attached video of the symptoms:
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Support Filtering by allow list in Conditional UI #1793 - GitHub
As I worked on implementing Conditional UI, I realized that while the confirming credentials can only be for the currently authenticated ...
Read more >Implementing a simple autofill / conditional UI flow for passkeys
This will prompt the user with a credential if one is discovered on the device that matches the current origin of the webpage....
Read more >Apostille Documents | General Information - GSCCCA
General Apostille Information. GSCCCA Document Authentication. Georgia has two separate and distinct state agencies authorized to authenticate documents.
Read more >Requesting Authentication Services - travel.gov
State.Gov. U.S. DEPARTMENT of STATE — BUREAU of CONSULAR AFFAIRS ... The fee to authenticate documents has increased to $20 per document for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sameh-amwal I have a PR ready with a fix. If you’re comfortable with cloning and
npm install
’ing file paths you should be able to test it locally with something like this:NPM does support
npm install
’ing branches on a repo, but unfortunately because SimpleWebAuthn is a monorepo you have to jump through a few extra steps instead.If the steps above prove too tricky then let me know and I can cut a new alpha release for you to simply
npm install
and confirm the fix.Absolutely. Thanks for the fix 🙏