From 83db0d9fee250e54020ecef831a0e096685424ac Mon Sep 17 00:00:00 2001 From: Charles Schaefer Date: Sun, 23 Feb 2025 18:39:00 -0300 Subject: [PATCH] Adding a warning on the JS side --- plugins/biometric/guest-js/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/biometric/guest-js/index.ts b/plugins/biometric/guest-js/index.ts index a88ea490..ec9cea10 100644 --- a/plugins/biometric/guest-js/index.ts +++ b/plugins/biometric/guest-js/index.ts @@ -93,6 +93,9 @@ export async function authenticate( * using the system interface (touchID, faceID or Android Iris). * Rejects if the authentication fails. * + * Warning: consider that if the data is encrypted and the user changes the biometric settings, the key needed + * to decrypt the data will be lost. So, it's recommended to use this only to data that the user can get back + * by other means (i.e. storing their password in a secure way so they can login passwordless with biometric authentication). * * ```javascript * import { biometricCipher } from "@tauri-apps/plugin-biometric";