Skip to main content
The return type of usePasskeyAutofill.
interface UsePasskeyAutofillResult {
  inputRef: RefObject<HTMLInputElement>;
}

Properties

inputRef
RefObject<HTMLInputElement>
required
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.