Biometric Auth Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
3
Entities
0
Integrations
Description
Manages device biometric enrollment and re-authentication using Flutter's local_auth package. After initial BankID/Vipps login, stores an encrypted reference to the Supabase session token in Flutter Secure Storage and retrieves it upon successful biometric challenge.
biometric-auth-service
Responsibilities
- Check device biometric capability and enrollment status
- Enroll biometric after successful BankID/Vipps first login
- Authenticate via biometric challenge and retrieve stored session token
- Clear biometric enrollment on logout or credential revocation
Interfaces
isBiometricAvailable()
enrollBiometricForSession(supabaseToken)
authenticateWithBiometric()
getStoredSessionToken()
clearBiometricEnrollment(userId)
getBiometricType()
Related Data Entities (3)
Data entities managed by this component