Automatically get token during API requests using Axios

Register
Submit a solution
The challenge is finished.

Challenge Overview

At the moment for each request which requires user token we are repeating code for getting a token, see

image

Instead of repeating the same code we have create an Axios Instance with interceptor which would automatically get the token like this https://github.com/appirio-tech/connect-app/blob/feature/custom-project-plan/src/api/requestInterceptor.js#L31



Final Submission Guidelines

Git issue link: https://github.com/topcoder-platform/taas-app/issues/16

Review style

Final Review

Community Review Board

Approval

User Sign-Off

Challenge links

ID: 30160901