NiklasMerz / cordova-plugin-fingerprint-aio

Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
https://www.npmjs.com/package/cordova-plugin-fingerprint-aio
MIT License
323 stars 189 forks source link

Check for Existing Secret #281

Open Dahmsk opened 4 years ago

Dahmsk commented 4 years ago

Feature Request

To check whether or not a secret exists.

Feature Description

I love the addition of storing secrets with the new version 4.0.0. I would like to use this to store credentails and allow my users to login via faceId oder fringerprint. But right now I dont see a way to know whether or not a user has previously saved a secret (his credentials).

Did I miss something or is this feature not existant? If so is it planed?

Also I wanted to say thank you for your work, This plugin is awesome.

leolio86400 commented 3 years ago

The problem I had while working on the plugin was that iOS ask you to pass the biometric test to find out if the key is present in the keystore. A simple solution is to store a flag in your storage (local storage/native storage or else...) to say that the secret is already set.