Authenticates with an existing FIDO credential using native platform APIs.
Authentication options payload.
A promise that resolves to the authentication result payload.
Runs the native FIDO passkey ceremony for an active DaVinci FIDO2 authentication collector.
Active DaVinci instance.
Optionaloptions: FidoDaVinciAuthenticationOptionsOptional authentication ceremony options.
A promise that resolves to the WebAuthn assertion payload. Informational
only — submit natively by advancing the flow with daVinci.next({ collectors: [] }).
On ceremony failure the rejection carries clientError, the WebAuthn
DOMException name reported by the native collector (see
FidoClientErrorName). When clientError is defined, report the
failure to the server by advancing the flow with
daVinci.next({ collectors: [] }) so the flow can branch on it; do not
submit the node's collectors, a SUBMIT_BUTTON shadows the FIDO error.
Without propagation the failure stays client-side and the server never
observes it. Resolution failures such as FIDO_COLLECTOR_NOT_FOUND carry
no clientError and must not be propagated.
try {
await fido.authenticateForDaVinci(daVinci);
} catch (error) {
const err = FidoError.from(error);
if (err.clientError !== undefined) {
// The collector classified the failure; submit it so the flow can branch.
try {
await daVinci.next({ collectors: [] });
} catch (propagationError) {
// Advancing the flow also failed; surface propagationError without
// losing the original ceremony failure.
}
}
throw err;
}
Executes an active Journey FIDO authentication callback.
Active Journey instance.
Optionaloptions: FidoJourneyAuthenticationOptionsOptional authentication callback execution options.
A promise that resolves when callback execution succeeds.
Registers a new FIDO credential using native platform APIs.
Registration options payload.
A promise that resolves to the registration result payload.
Runs the native FIDO passkey ceremony for an active DaVinci FIDO2 registration collector.
Active DaVinci instance.
Optionaloptions: FidoDaVinciRegistrationOptionsOptional registration ceremony options.
A promise that resolves to the WebAuthn attestation payload. Informational
only — submit natively by advancing the flow with daVinci.next({ collectors: [] }).
On ceremony failure the rejection carries clientError, the WebAuthn
DOMException name reported by the native collector (see
FidoClientErrorName). When clientError is defined, report the
failure to the server by advancing the flow with
daVinci.next({ collectors: [] }) so the flow can branch on it; do not
submit the node's collectors, a SUBMIT_BUTTON shadows the FIDO error.
Without propagation the failure stays client-side and the server never
observes it. Resolution failures such as FIDO_COLLECTOR_NOT_FOUND carry
no clientError and must not be propagated.
try {
await fido.registerForDaVinci(daVinci);
} catch (error) {
const err = FidoError.from(error);
if (err.clientError !== undefined) {
// The collector classified the failure; submit it so the flow can branch.
try {
await daVinci.next({ collectors: [] });
} catch (propagationError) {
// Advancing the flow also failed; surface propagationError without
// losing the original ceremony failure.
}
}
throw err;
}
Executes an active Journey FIDO registration callback.
Active Journey instance.
Optionaloptions: FidoJourneyRegistrationOptionsOptional registration callback execution options.
A promise that resolves when callback execution succeeds.
Reusable client for FIDO operations.