Service Layer high complexity mobile
2
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

BLoC-based service managing the full biometric authentication flow. Checks hardware availability and enrollment status, invokes the local_auth plugin, retrieves the stored JWT refresh token from the secure enclave on success, and initiates a silent token refresh with the backend.

Feature: Biometric Login (Face ID / Fingerprint)

biometric-service

Responsibilities

  • Check device biometric capability and enrollment via local_auth
  • Authenticate user with Face ID or fingerprint using local_auth.authenticate()
  • Retrieve stored JWT refresh token from Secure Token Storage on successful biometric check
  • Call backend token refresh endpoint silently via JWT HTTP Client
  • Manage biometric enablement preference and first-login prompt state

Interfaces

checkAvailability() → Future<BiometricAvailability>
authenticate() → Future<BiometricAuthResult>
enableBiometrics() → Future<void>
disableBiometrics() → Future<void>
isBiometricEnabled() → Future<bool>
performSilentTokenRefresh(refreshToken: String) → Future<AuthTokens>

Relationships

Dependencies (2)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component