Remove the double check for fallback

This commit is contained in:
Aleksandr Kolbasov 2025-12-30 02:29:31 +03:00
parent 40c56d913d
commit 9e5a936e2a

View file

@ -203,8 +203,9 @@
if (!response.publicKey) {
if (!response.fallback) {
throwError(response?.errorCode, response?.errorMessage);
return null;
}
return response.fallback ? originalCredentials.create(options) : null;
return originalCredentials.create(options);
}
return createPublicKeyCredential(response.publicKey);
@ -228,8 +229,9 @@
if (!response.publicKey) {
if (!response.fallback) {
throwError(response?.errorCode, response?.errorMessage);
return null;
}
return response.fallback ? originalCredentials.get(options) : null;
return originalCredentials.get(options);
}
return createPublicKeyCredential(response.publicKey);