Skip to content

Commit

Permalink
✨ feat(frontend): Add function to grant biometric access
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sudoskys committed May 12, 2024
1 parent adbc0fb commit 452317c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 452317c

Please sign in to comment.