Project

General

Profile

Actions

Feature #3838

open

Add timeout and AbortSignal support to password-to-passkey conversion flow

Added by Joshua Zhao 2 months ago.

Status:
New
Priority:
Low
Assignee:
Start date:
07/05/2026
Due date:
% Done:

100%

Estimated time:

Description

Summary

Add overall timeout (default 120s) and AbortSignal support to the convertPasswordToPasskey orchestrator. Abort checks are placed between each step of the flow so cancellation is responsive.

Changes

  • `src/convert-flow.ts` — ConvertOptions with timeoutMs and signal, checkAbort() called between every major step, poll durations capped to remaining deadline
  • `src/tools.ts` — timeoutSeconds parameter on the convert tool
  • `src/convert-flow.test.ts` — 2 new tests: pre-aborted signal and overall timeout expiry

Testing

All 13 unit tests pass (8 convert-flow, 5 cdp-webauthn).

Actions

Also available in: Atom PDF