To access a device’s native biometrics functionality for additional authentication, develop a Lightning web component for your Experience Cloud app that uses BiometricsService API.
You can incorporate biometric ID checks for features of your app that require additional authentication by developing a Lightning web component with BiometricsService API. For example, you can add a component that uses BiometricsService API to a site page that requires authentication before making a payment.
Building biometrics-based functionality using BiometricsService API works only in the mobile app, not in the web version on mobile or desktop.
To allow users to log in to your app with biometric ID credentials, enable biometric ID app unlock. Use BiometricsService API to add biometric ID checks beyond your app’s login page.
Using BiometricsService API in your Experience Cloud app comprises two main tasks.
- Develop a Lightning web component that uses BiometricsService API according to your app’s scenarios for biometric ID checks. See Access a Mobile Device’s Biometrics Capabilities in the Mobile and Offline Developer Guide.
- In Experience Builder, add the Lightning web component to the applicable pages on your Experience Cloud site. See Edit Pages and Components in Experience Builder for more information.