Infrastructure low complexity Shared Component mobile
0
Dependencies
3
Dependents
0
Entities
1
Integrations

Description

Abstraction layer over Flutter's platform secure storage (Keychain on iOS, Keystore on Android) used for persisting sensitive session data such as the selected organization ID and authentication tokens. Provides a typed interface so higher-level services are not coupled to a specific storage plugin.

Feature: Organization Selection & Onboarding

secure-storage-adapter

Responsibilities

  • Write key-value pairs to platform secure storage
  • Read and return stored values by key
  • Delete individual keys or flush all stored data
  • Handle platform-specific storage exceptions gracefully

Interfaces

write(String key, String value) -> Future<void>
read(String key) -> Future<String?>
delete(String key) -> Future<void>
deleteAll() -> Future<void>
containsKey(String key) -> Future<bool>

Relationships

Dependents (3)

Components that depend on this component

Used Integrations (1)

External integrations and APIs this component relies on

API Contract

View full contract →
REST /api/v1/secure-storage 6 endpoints
GET /api/v1/secure-storage List stored secure keys for current user (keys only, no values)
GET /api/v1/secure-storage/:key Read a value from secure storage by key
POST /api/v1/secure-storage Write a key-value pair to secure storage
PUT /api/v1/secure-storage/:key Update value for an existing secure storage key
DELETE /api/v1/secure-storage/:key Delete a single key from secure storage
DELETE /api/v1/secure-storage Delete all keys from secure storage for current user