hieuvp / react-native-fingerprint-scanner

Provide Fingerprint, Touch ID, and Face ID Scanner for React Native (Compatible with both Android and iOS)
https://www.npmjs.com/package/react-native-fingerprint-scanner
870 stars 298 forks source link

suggestion: resolve 'result' not 'true' when authentication succeeded #140

Open bychung opened 4 years ago

bychung commented 4 years ago

Hello, I trying use this module, but I found no information is resolved when authentication has succeeded. For example on Android, it throws an result form of BiometricPrompt.AuthenticationResult which has crypto information. But in code, only resolve 'true'.

@Override
        public void onAuthenticationSucceeded(@NonNull BiometricPrompt.AuthenticationResult result) {
            super.onAuthenticationSucceeded(result);
            this.promise.resolve(true);
        }

Could you guys please modify this code to resolve the 'result' not 'true'? Thank you.