
A snippet containing JavaScript that makes use of the LocalAuthentication API functionality is listed below.
if(window.launchbox.LocalAuthentication){
window.launchbox.LocalAuthentication.authenticate(function(success){
successAction(success);
});
}else{
// authentication not supported on device
successAction(true);
}