{
  "id": 20516972,
  "title": "Capacitor Biometric Login for a Lovable App: Face ID Done Right",
  "url": "https://urgent.news/2026/11/17/capacitor-biometric-login-for-a-lovable-app-face-id-done-right",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-17T23:48:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/batmanofweb/capacitor-biometric-login-for-a-lovable-app-face-id-done-right-4117"
  },
  "original_language": "en",
  "account": "The article discusses building a secure biometric login system using the Capacitor framework for Lovable apps. Two Capacitor plugins, @capgo/capacitor-native-biometric and @aparajita/capacitor-biometric-auth, are compared. The @capgo plugin is recommended because it stores secrets in the iOS Keychain and Android Keystore, providing a more secure login experience. The article emphasizes that Face ID should unlock a refresh token, not the user's password, to ensure better security. The process involves storing the Supabase refresh token after biometric authentication and refreshing the session with the token on subsequent launches. The article also highlights the importance of using BIOMETRY_CURRENT_SET instead of BIOMETRY_ANY to prevent unauthorized access if additional biometric profiles are set up. Additionally, it mentions the error code 21, which occurs when there is no protected data to read, and advises treating it as a normal login screen. The article concludes with advice on platform setup, including adding NSFaceIDUsageDescription to the Info.plist for iOS and handling biometryChange events to ensure proper functionality across different devices.",
  "summary": "Most Capacitor biometric tutorials stop at the part that looks good in a demo: tap a button, Face ID spins, a green checkmark. In a Lovable app that's the least interesting part. Your users sign in with Supabase auth (Lovable Cloud runs on it too), so the real question is what Face ID actually unlocks. If the answer is \"a boolean in JavaScript\", you've built a curtain, not a lock. This is the…",
  "key_points": [
    "Capacitor framework used for secure biometric login in Lovable apps",
    "@capgo/capacitor-native-biometric plugin recommended for iOS/Android security",
    "Face ID unlocks refresh token, not password, for enhanced security"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}