fix: Change backup eligibility

This commit is contained in:
J-Jamet
2025-09-01 16:05:47 +02:00
parent 1a717bda03
commit c861fe790c

View File

@@ -476,8 +476,8 @@ object PasskeyHelper {
) ?: mapOf<Int, Any>()), ) ?: mapOf<Int, Any>()),
userPresent = true, userPresent = true,
userVerified = true, userVerified = true,
backupEligibility = false, backupEligibility = BACKUP_ELIGIBILITY,
backupState = false, backupState = false, // TODO Setting to add a backup manually #2135
publicKeyTypeId = keyTypeId, publicKeyTypeId = keyTypeId,
publicKeyCbor = Signature.convertPublicKey(keyPair.public, keyTypeId)!!, publicKeyCbor = Signature.convertPublicKey(keyPair.public, keyTypeId)!!,
clientDataResponse = publicKeyCredentialCreationParameters.clientDataResponse clientDataResponse = publicKeyCredentialCreationParameters.clientDataResponse
@@ -555,8 +555,8 @@ object PasskeyHelper {
requestOptions = requestOptions, requestOptions = requestOptions,
userPresent = true, userPresent = true,
userVerified = true, userVerified = true,
backupEligibility = false, backupEligibility = BACKUP_ELIGIBILITY,
backupState = false, backupState = false, // TODO Setting to add a backup manually #2135
userHandle = passkey.userHandle, userHandle = passkey.userHandle,
privateKey = passkey.privateKeyPem, privateKey = passkey.privateKeyPem,
clientDataResponse = clientDataResponse clientDataResponse = clientDataResponse
@@ -587,4 +587,6 @@ object PasskeyHelper {
) )
} }
} }
private const val BACKUP_ELIGIBILITY = true
} }