From 452317ceb09d79e57100987c0c308872e344129b Mon Sep 17 00:00:00 2001 From: sudoskys Date: Mon, 13 May 2024 02:09:31 +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 47cb2df..acfff44 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 = error.data.message || `Backend verification error: ${error.code}` + verifyBackendMessage.message = error.response?.data?.message || `Backend verification error: ${error.code}` }) } const grantBiometricAccess = () => {