Settings API Client
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Thin HTTP client wrapper responsible for syncing user preference changes that have a backend representation (e.g., notification consent, language) to the REST API endpoint. Uses the shared Auth API Client for authenticated requests and handles retry on transient failures.
settings-api-client
Responsibilities
- POST/PATCH user preference updates to REST API
- Handle authentication headers via shared token store
- Retry on transient network failures with exponential back-off
Interfaces
patchNotificationPreferences(userId, prefs)
patchLanguagePreference(userId, locale)
patchAccountSettings(userId, settings)