Skip to content

Add biometric login + credential storage to native bridge#249

Open
sauravvarma wants to merge 1 commit into
mainfrom
feat/biometric-login
Open

Add biometric login + credential storage to native bridge#249
sauravvarma wants to merge 1 commit into
mainfrom
feat/biometric-login

Conversation

@sauravvarma
Copy link
Copy Markdown
Collaborator

iOS (full implementation):

  • New BiometricAuthHandler using LocalAuthentication + Keychain with kSecAttrAccessControl(.biometryCurrentSet) so stored credentials auto- invalidate on biometry enrollment changes
  • 5 commands: authenticateBiometric, isBiometricAvailable, setBiometricCredential, getBiometricCredential, deleteBiometricCredential
  • Schemas + allowlist updates, NSFaceIDUsageDescription added to Info.plist

Android (stubs):

  • 5 @JavascriptInterface methods returning BIOMETRIC_NOT_IMPLEMENTED
  • WebEvents + allowlist parity with iOS so JS code is identical across platforms

JS bridge:

  • Constants, nativeBridge.biometric namespace, and Promise-based WebBridge wrappers (authenticate/availability/get/set/delete credential)

iOS (full implementation):
- New BiometricAuthHandler using LocalAuthentication + Keychain with
  kSecAttrAccessControl(.biometryCurrentSet) so stored credentials auto-
  invalidate on biometry enrollment changes
- 5 commands: authenticateBiometric, isBiometricAvailable,
  setBiometricCredential, getBiometricCredential, deleteBiometricCredential
- Schemas + allowlist updates, NSFaceIDUsageDescription added to Info.plist

Android (stubs):
- 5 @JavascriptInterface methods returning BIOMETRIC_NOT_IMPLEMENTED
- WebEvents + allowlist parity with iOS so JS code is identical
  across platforms

JS bridge:
- Constants, nativeBridge.biometric namespace, and Promise-based
  WebBridge wrappers (authenticate/availability/get/set/delete credential)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@deputydev-agent
Copy link
Copy Markdown

DeputyDev will no longer review pull requests automatically.To request a review, simply comment #review on your pull request—this will trigger an on-demand review whenever you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant