Urgent.News

What's breaking now, across thousands of outlets.

Tech

Capacitor Biometric Login for a Lovable App: Face ID Done Right

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…

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.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Automated Scripting Solution Bypasses Rate Your Music Bulk Entry Limitations for One Million Tracks

The Technical Bottleneck: Understanding Platform Limits and API Constraints When avant-garde endurance art collides with community-driven metadata architecture, the failure points are neither…

  • Automated scripts bypass browser memory limitations for one million tracks
  • Server-side ingestion hits payload size limits, causing 413 errors
  • Manual entry impractical, limited options for handling massive dataset

How to Connect Eaglercraft, Bedrock, and Education Edition to Java Servers Without Port Bloat

Running a cross-play Minecraft network usually forces server administrators to open a messy tangle of extra ports, leading to firewall headaches and VRAM overhead when bridging multiple protocol…

  • WummsyGateway connects Java, Bedrock, EduGeyser, and Eaglercraft to one server.
  • Uses two extra ports, avoids multiple port bloat and firewall issues.
  • Available for deployment on CurseForge.

What Does XAUUSD Mean? Read a Gold Quote Without Assuming a Contract

XAUUSD commonly denotes gold quoted in US dollars per troy ounce. It tells you how to read a price, not how much gold an order represents or which contract you are buying.

  • XAUUSD denotes gold priced in US dollars per troy ounce
  • Six-letter abbreviation (XAU) signifies gold, USD for US dollar
  • Troy ounce equals 31.1034768 grams, distinct from avoirdupois ounce

More from Tuesday 17 November →