Biometric Authentication Service
Component Detail
Service Layer
medium complexity
Shared Component
mobile
3
Dependencies
2
Dependents
2
Entities
1
Integrations
Description
Core service that wraps the Flutter local_auth package and orchestrates the full biometric authentication flow. Checks device capability, triggers the native biometric dialog, and on success refreshes the Supabase session token. Returns typed result objects for UI handling.
biometric-auth-service
Responsibilities
- Check device biometric capability and enrollment status
- Invoke native biometric prompt and handle success, failure, and cancellation
- Refresh Supabase session token upon successful biometric verification
- Map local_auth error codes to typed domain results
Interfaces
canAuthenticate()
authenticate(localizedReason)
getAvailableBiometrics()
stopAuthentication()
refreshSessionAfterBiometric()
isBiometricEnabled()
Relationships
Dependencies (3)
Components this component depends on
Dependents (2)
Components that depend on this component
Related Data Entities (2)
Data entities managed by this component
Used Integrations (1)
External integrations and APIs this component relies on