JWT HTTP Client
Component Detail
Infrastructure
low complexity
Shared Component
mobile
0
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Shared REST API client that attaches the authenticated JWT token to all outgoing requests. Handles token refresh on 401 responses and forwards request errors to the calling layer. Used across all features that communicate with the backend REST API.
jwt-http-client
Responsibilities
- Attach Authorization Bearer token to all API requests
- Trigger token refresh flow on 401 Unauthorized responses
- Expose typed HTTP methods (get, post, put, delete) with error propagation
Interfaces
get(path, {queryParams})
post(path, body)
put(path, body)
delete(path)
Relationships
Dependents (2)
Components that depend on this component