Skip to content

Commit

Permalink
fix: using secure hardware with biometrics
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Oct 9, 2024
1 parent 449ca01 commit 37e3abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/recoveryWalletInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const options = (biometrics: Keychain.BIOMETRY_TYPE | null): Keychain.Options =>
accessible: Keychain.ACCESSIBLE.WHEN_UNLOCKED_THIS_DEVICE_ONLY, // for both
authenticationType: Keychain.AUTHENTICATION_TYPE.DEVICE_PASSCODE_OR_BIOMETRICS, // for both
rules: Keychain.SECURITY_RULES.NONE, // for both
securityLevel: Keychain.SECURITY_LEVEL.SECURE_HARDWARE, // for both
// with biometrics in the device -> SECURE HARDWARE
securityLevel: biometrics ? Keychain.SECURITY_LEVEL.SECURE_HARDWARE : Keychain.SECURITY_LEVEL.SECURE_SOFTWARE,
// with biometrics in the device -> RSA
storage: biometrics ? Keychain.STORAGE_TYPE.RSA : Keychain.STORAGE_TYPE.AES,
} as Keychain.Options;
Expand Down

0 comments on commit 37e3abd

Please sign in to comment.