Skip to main content
Example

Constructors

Constructor
Creates an instance of LoginIdManager.

Properties

string

Methods

Promise<void>
Example
Retrieves the array of transaction errors from the context, or an empty array if none exist.
Utility FeatureGets the active identifier types for the login screen
Example
Promise<void>
Example
Promise<void>
Example
Promise<void>
Example

Passkeys

Promise<void>
Utility FeatureRegisters the browser’s Conditional UI for passkeys (autocomplete experience).This method initializes a passive WebAuthn credential request using navigator.credentials.get() with mediation: "conditional". When supported, this allows the browser to display stored passkeys directly within the username field’s autocomplete dropdown.Call this once when the login screen is initialized (for example, on page load). After registration, focusing the username input will automatically display matching passkeys as suggestions. Selecting a passkey completes authentication without requiring additional user interaction.

Input configuration

If an inputId is provided, the SDK will:
  • Validate that the element exists and is an <input>.
  • Overwrite its autocomplete attribute with "webauthn username".
This ensures full compatibility with the Conditional Mediation API. If you do not provide an inputId, you are responsible for configuring the input element manually with the correct attributes:

Gotchas

  • The autocomplete attribute must exactly contain "webauthn username". Including unrelated tokens such as "email" or "text" will prevent browsers from showing the passkey dropdown.
  • Overwriting the attribute is intentional and required for consistent behavior across browsers. Do not rely on merging or extending existing autocomplete values.
  • If Conditional Mediation is not supported by the browser, the SDK will safely no-op.

Parameters

string
stringOptional ID of the username <input> element (without #). Example: "username". If omitted, the developer must manually ensure the correct autocomplete attributes.
Example

Remarks

This method delegates to the internal registerPasskeyAutofill() utility, returning a background AbortController to manage request lifetime. It should only be invoked once per page lifecycle.