mobile: fix ios crash when using biometrics

This commit is contained in:
Ammar Ahmed
2025-12-25 22:03:20 +05:00
parent 67cd2e6504
commit a81c534258

View File

@@ -76,11 +76,11 @@ async function getCredentials(title?: string, description?: string) {
const options = Platform.select({
ios: {
fallbackEnabled: false,
description: description
description: description || title || "Unlock"
},
android: {
title: title,
description: description,
description: description || "Unlock",
deviceCredentialAllowed: false
}
});
@@ -132,11 +132,11 @@ async function validateUser(title: string, description?: string) {
Platform.select({
ios: {
fallbackEnabled: false,
description: title
description: title || "Unlock"
},
android: {
title: title,
description: description,
description: description || "Unlock",
deviceCredentialAllowed: false
}
}) as AuthenticateIOS