Skip to content

Feat/issue#330

Open
DevMuhdishaq wants to merge 2 commits into
Dfunder:mainfrom
DevMuhdishaq:feat/issue
Open

Feat/issue#330
DevMuhdishaq wants to merge 2 commits into
Dfunder:mainfrom
DevMuhdishaq:feat/issue

Conversation

@DevMuhdishaq

Copy link
Copy Markdown

Closes #298
Created a configured Axios instance for all API communication with interceptors.

Tasks:
Install axios
Create src/services/api.js with a configured Axios instance using VITE_API_BASE_URL
Add a request interceptor to attach the JWT Authorization: Bearer header from Redux store
Add a response interceptor to:
Handle 401 responses by dispatching a logout action
Handle 422/400 validation errors and extract error messages
Export the instance as default
Acceptance Criteria:
All API calls use the configured instance; JWT is automatically attached; 401 logs the user out.
Closes #304

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@DevMuhdishaq Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup Axios Instance Initialize React Project with Vite

1 participant