I'm using package local_auth to do the bio auth in my flutter project, but im facing a issue that when user change the bio info, then app should detect the changes and notify user that the bio info changed, need to use passcode do the authorization. But the authenticate method provided by local_auth package only return a bool, no token or any info.
flutter: 3.13.0
local_auth: 2.1.7
try {
final bool didAuthenticate = await LocalAuthentication().authenticate(
localizedReason: 'Please authenticate to show account balance',
options: const AuthenticationOptions(useErrorDialogs: true),
);
debugPrint("didAuthenticate: $didAuthenticate");
} on PlatformException catch (e) {
if (e.code == auth_error.notAvailable) {
} else if (e.code == auth_error.notEnrolled) {
} else {
// ...
}
}
i expect there is a token or something that i can use to compare with when each time user use bio auth to login my app
If anyone encounter this issue, please refer to this package: did_change_authlocal, but for android devices, it only can detect the changes of fingerprint
here is the link of the package:https://pub.dev/packages/did_change_authlocal