-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement this plugin correctly? #331
Comments
I just managed to implement this within my capacitor project with plugin version 4.0.2. I was at first also confused with the clientId fields etc, but I went into the plugin code and found the FingerprintOptions interface which is:
This should answer your first question, not too sure about the second. |
@dahyui Thanks for the reply Currently, I am doing this in a way that the user login the first time it enables biometric and prompts to open and I store the user email and password as a secret inside. Now next time when he goes to login I loaded the secret and send it to API. and log in within the app. |
@AbdulAhad125 If you are using a token based authentication, the most secure thing u can do is to save in the secret a key to encrypt the refreshToken, so every time the user enters in yur app un decrypt it with the secret and request a new accessToken |
I have a Cordova React project where I had to implement the login through fingerprint and facial recognition.
The requirement is that users can log in to the system with fingerprint or facial recognition. For this user have to enable fingerprint or facial recognition the dashboard and this detail will go to the endpoint where it will go to the server. and next time user just taps and it will get its details from the server and so he can log in to the system.
I may be sounding silly but after reading how to use the info I still didn't get how to implement it
`
window.Fingerprint.isAvailable((result) => {
console.log('FingerPrint available', result);
`
My Current platform versions
Android: 9.0
Ios: 5.1.1
There are few queries
Problems
1: Fingerprint scan most of the time gives BIOMETRIC_AUTHENTICATION_FAILED = -102;
2: If a scan fails or success some time prompt closes abruptly.
Can anyone help me in summarizing the whole problem that how this can be achieved and all steps?
It would be a great help. Thanks in advance
The text was updated successfully, but these errors were encountered: