
Example
Constructors
Creates an instance of LoginIdManager.
Properties
branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
Methods
Example
getErrors
Retrieves the array of transaction errors from the context, or an empty array if none exist.
getLoginIdentifiers
Utility FeatureGets the active identifier types for the login screenExample
Example
Example
Example
Passkeys
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 aninputId is provided, the SDK will:
- Validate that the element exists and is an
<input>. - Overwrite its
autocompleteattribute with"webauthn username".
inputId, you are responsible for configuring
the input element manually with the correct attributes:
Gotchas
- The
autocompleteattribute 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
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 internalregisterPasskeyAutofill() utility,
returning a background AbortController to manage request lifetime. It should
only be invoked once per page lifecycle.