canBeSecurityKey property

bool canBeSecurityKey
final

Whether a hardware security key may be offered as an authenticator.

When false, the system sheet only offers passkeys and does not show options such as "Use Security Key" or "Scan QR Code". Set this to false when the relying party knows that none of the allowCredentials live on a roaming authenticator.

This is only used on iOS and macOS. Security keys are never offered there when preferImmediatelyAvailableCredentials is true or when mediation is MediationType.Conditional, regardless of this value.

Implementation

final bool canBeSecurityKey;