Skip to content

Implement API Service Layer with Real Backend Integration #75

@KuchiMercy

Description

@KuchiMercy

Complexity: High (200 points)

Description

Replace mock EscrowService with real API integration including authentication, error handling, and request interceptors.

Requirements and Context

Current service uses mock data
Need real API calls to NestJS backend
Must handle JWT authentication
Should implement request/response interceptors

Suggested Execution

Create api/client.ts with axios instance and interceptors
Create api/auth.ts for authentication endpoints
Update services/escrow.ts to use real API
Add JWT token management in requests
Implement refresh token flow

Test and Commit

Test API client configuration
Test authentication flow
Verify error handling works correctly

Example Commit Message

feat(frontend): implement real API service layer with authentication

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions