Added initial error handler to passkeys processing.

This commit is contained in:
23rd
2025-12-02 21:59:05 +03:00
committed by John Preston
parent 0480c6a4af
commit e7c1073e13
5 changed files with 32 additions and 0 deletions

View File

@@ -366,6 +366,10 @@ void QrWidget::setupControls() {
Platform::WebAuthn::Login(loginData, [=](
Platform::WebAuthn::LoginResult result) {
if (result.userHandle.isEmpty()) {
using Error = Platform::WebAuthn::Error;
if (result.error == Error::UnsignedBuild) {
showError(tr::lng_settings_passkeys_unsigned_error());
}
return;
}
::Data::FinishPasskeyLogin(