Skip to content

Commit

Permalink
⚙️ refactor(frontend): update biometric access message
Browse files Browse the repository at this point in the history
- Refactor the message for biometric access to be more clear and concise. Remove unnecessary alert popup.
- Update the reason message to prompt the user to grant biometric access first.
  • Loading branch information
sudoskys committed May 13, 2024
1 parent 452317c commit 8c946b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ const authSuccess = () => {
}
const grantBiometricAccess = () => {
if (!WebAppBiometricManager.isBiometricInited.value) {
return WebAppPopup.showAlert('Biometric not initialized')
return console.log('Biometric not initialized')
}
WebAppBiometricManager.requestBiometricAccess(
{reason: 'Please authenticate to continue'},
{reason: 'Please grant biometric access first'},
(isAccessGranted: boolean) => {
if (isAccessGranted) {
console.log('Biometric access granted')
} else {
console.log('Biometric access denied')
WebAppPopup.showAlert('Biometric access denied, you can click settings to open the settings')
// WebAppPopup.showAlert('Biometric access denied, you can click settings to open the settings')
}
}
)
Expand Down

0 comments on commit 8c946b4

Please sign in to comment.