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.

Feature: BankID & Vipps Authentication

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()