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

Description

Orchestrates the biometric authentication flow by checking device biometric capability, invoking the local_auth plugin for verification, and coordinating with the Secure Token Store to retrieve the encrypted refresh token upon successful biometric check. Handles the silent token refresh call to the backend API to obtain a new access token without requiring credential re-entry.

Feature: Biometric Login (Face ID/Fingerprint)

biometric-auth-service

Responsibilities

  • Check device biometric hardware availability and enrollment status at app start
  • Invoke local_auth plugin for Face ID or fingerprint verification
  • Retrieve encrypted refresh token from Secure Token Store on biometric success
  • Call token refresh endpoint to obtain new access token silently
  • Gracefully disable biometric flow on unsupported devices

Interfaces

authenticate()
isBiometricAvailable()
isBiometricEnrolled()
getSupportedBiometricTypes()
refreshSessionToken()
onAuthenticationSuccess(accessToken)
onAuthenticationFailure(reason)
enableBiometricLogin()
disableBiometricLogin()
getBiometricLoginStatus()

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