Skip to main content
Result object returned by usePasskeyAutofill.

Properties

inputRef
RefObject<HTMLInputElement>
A React ref to attach to the username input element. When bound, the SDK automatically configures the input’s autocomplete attribute to "username webauthn", enabling browser Conditional UI for passkey autofill.
  • Binding this ref is optional — if autocomplete="username webauthn" is already declared in your markup, the hook registers correctly without it.
  • When bound, the ref ensures the attribute is set regardless of how the input is rendered.