Skip to content

feat(mobile): Biometric Hardware-Secured Farmer Authentication in Mobile App - #1342

Open
hrshjswniii wants to merge 2 commits into
Nitya-003:mainfrom
hrshjswniii:feature/mobile-biometric-auth
Open

feat(mobile): Biometric Hardware-Secured Farmer Authentication in Mobile App#1342
hrshjswniii wants to merge 2 commits into
Nitya-003:mainfrom
hrshjswniii:feature/mobile-biometric-auth

Conversation

@hrshjswniii

Copy link
Copy Markdown
Contributor

📌 Overview

This PR implements [feature] : Biometric Hardware-Secured Farmer Authentication in Mobile App bringing hardware-backed biometric unlock (TouchID / FaceID / Fingerprint) to the Expo mobile app, allowing smallholder farmers logging harvests in remote fields to authenticate sessions securely and quickly without typing passwords on field screens.

Key Changes Introduced:

  1. Mobile Biometric Authentication Service:
    • Created [mobile/src/services/biometricAuthService.ts] wrapping expo-local-authentication and expo-secure-store for hardware capability checking, biometric prompt invocation, and secure key storage.
  2. Profile Settings UI Integration:
    • Updated [mobile/app/(tabs)/profile.tsx] with an interactive Biometric Lock (फ़िंगरप्रिंट अनलॉक) toggle switch requiring biometric verification prior to enabling/disabling lock preferences.
  3. Automated Verification Script:
    • Updated [mobile/verify-mobile-i18n.js] verifying biometric hardware check functions and profile screen integration (100% verification pass).

🛠️ Type of Change

  • ⛓️ Smart Contract (Solidity changes, Gas optimization)
  • 💻 Frontend (UI/UX, React components, Tailwind)
  • 📱 Mobile / Security (Expo React Native, Biometrics, Secure Store)
  • 📄 Documentation (README, Roadmap updates)
  • 🧪 Testing (Mobile verification script)

🔗 Related Issue

Closes #1308


🧪 Testing & Verification

  • Smart Contracts: npx hardhat test passed? (N/A)
  • Mobile: node verify-mobile-i18n.js passed? (Yes) — 100% parity & biometric hardware checks passing.
  • Integration: Verified hardware biometric prompt invocation & toggle state persistence? (Yes).

✅ PR Checklist

  • My code follows the project's style guidelines.
  • I have commented my code, particularly in complex areas (e.g., hardware biometric sensor checks & fallback passcodes).
  • I have updated the documentation accordingly.
  • My changes generate no new warnings.

💬 Additional Notes

  • Created [mobile/src/services/biometricAuthService.ts]
  • Updated [mobile/app/(tabs)/profile.tsx]
  • Updated [mobile/verify-mobile-i18n.js]

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

@hrshjswniii is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize 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.

[feature] : Biometric Hardware-Secured Farmer Authentication in Mobile App

1 participant