BiometricPromptWidget
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Native biometric prompt overlay shown at app launch when a stored session token exists. Triggers the platform biometric dialog (Face ID on iOS, fingerprint/face on Android) and communicates success or fallback to the caller. Renders contextual messaging for denied, locked-out, and unavailable hardware states.
biometric-prompt-widget
Sources & reasoning
Line 42 describes biometrics as the follow-up to BankID/Vipps first-time login, explicitly naming Face ID and fingerprint. Line 276 specifies tokens stored in the platform secure store, which is the mechanism biometric unlock uses. Both references place this in the Fase 2 / BankID-Vipps rollout context, mapping to v1.0.
-
docs/source/likeperson.md · line 42med biometrisk innlogging (Face ID / fingeravtrykk) etterpå
-
docs/source/likeperson.md · line 276Biometric session unlock (Face ID / fingerprint) after first login. Mobile stores tokens in the platform secure store
Responsibilities
- Render the platform-native biometric prompt via LocalAuthentication / BiometricPrompt API
- Display user-facing status messages for authentication outcomes (success, failure, lockout, unavailable)
- Emit callbacks for success, fallback-to-password, and cancel events
- Handle hardware unavailability gracefully by hiding the biometric option
Interfaces
show(reason: string): Promise<BiometricResult>
onSuccess(callback: () => void): void
onFallback(callback: () => void): void
onCancel(callback: () => void): void