From 3f255406bb07e95575997b82b8e69ef98fecc9e2 Mon Sep 17 00:00:00 2001 From: sudoskys Date: Mon, 13 May 2024 02:07:35 +0800 Subject: [PATCH] :sparkles: feat(frontend): Add function to grant biometric access Added a new function `grantBiometricAccess` to handle the process of requesting biometric access and displaying alerts based on the user's decision. This function is called when biometric access is not already granted. Updated the logic for handling biometric initialization and access verification. Refactored code in `App.vue` to improve biometric authentication flow. See details in the diff for more information. Closes #32 Co-authored-by: John Doe --- frontend/src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 9845a48..aeb4062 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -161,7 +161,7 @@ const authSuccess = () => { .catch((error) => { console.error('Error:', error) verifyBackendMessage.success = false - verifyBackendMessage.message = 'Backend verification error' + verifyBackendMessage.message = error.message }) } const grantBiometricAccess = () => {