Service Layer low complexity mobile
0
Dependencies
3
Dependents
1
Entities
0
Integrations

Description

Platform-native secure storage adapter that persists and retrieves the refresh token using Flutter Secure Storage, which delegates to iOS Keychain and Android Keystore-backed EncryptedSharedPreferences. Biometric data never touches this service; it only manages the encrypted token material unlocked after a successful biometric check.

Feature: Biometric Login (Face ID / Fingerprint)

secure-token-store

Responsibilities

  • Write refresh token to platform secure store after initial full authentication
  • Read refresh token for biometric-triggered session renewal
  • Delete stored token on explicit sign-out, token revocation, or device re-enrollment
  • Return null when no token is stored, signalling that full credential login is required

Interfaces

saveRefreshToken(token: String) → Future<void>
readRefreshToken() → Future<String?>
deleteRefreshToken() → Future<void>
hasStoredToken() → Future<bool>

Relationships

Dependents (3)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component