authenticatorSelection
authenticatorSelection is a parameter used in the Web Authentication (WebAuthn) API, specifically as part of PublicKeyCredentialCreationOptions. It allows a relying party to specify criteria for selecting an authenticator during credential creation. By setting these criteria, a relying party can influence which type of authenticator is considered acceptable and, in some cases, whether a user’s device can satisfy the request.
The authenticatorSelection object can include several criteria:
- authenticatorAttachment: indicates the desired category of authenticator. Values typically include "platform" for built-in authenticators on the
- requireResidentKey: a boolean value that expresses whether a resident key (a credential stored on the authenticator)
- userVerification: indicates the level of user verification that should be performed by the authenticator. Possible values
- authenticatorSelection is optional; omitting it lets the platform decide the best available authenticator.
- Support for these criteria depends on the device, browser, and authenticators available. If the criteria cannot
See also: WebAuthn, PublicKeyCredentialCreationOptions, AuthenticatorSelection.