Biometric in smart code is used for fingerprint recognition by assigning the same in General method of smart code. This feature provides security provision for the user.
Smart Code
Syntax
GoogleSignin(Variable);
- Variable = Name of the variable to save the return status
Direct Code
Syntax
var optionalConfigObject = {
title: ‘Authentication Required’,
imageColor: ‘#e00606’,
imageErrorColor: ‘#ff0000’,
sensorDescription: ‘Touch sensor’,
sensorErrorDescription: ‘Failed’,
cancelText: ‘Cancel’,
fallbackLabel: ‘Show Passcode’,
unifiedErrors: false,
passcodeFallback: false,
};var Add;
await TouchID.isSupported(optionalConfigObject).then(async (biometricype) => {
if (biometricype) {
await TouchID.authenticate(“”, optionalConfigObject).then((success) => {
<<Variable_Name>> = success;
}).catch((err) => {
console.log(“Error”, err);
});
return true;
}
else {
<<Variable_Name>> = null;
}
});