Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

[$60] Automatically get token during API requests using Axios #16

Closed
maxceem opened this issue Dec 7, 2020 · 5 comments
Closed

[$60] Automatically get token during API requests using Axios #16

maxceem opened this issue Dec 7, 2020 · 5 comments

Comments

@maxceem
Copy link
Contributor

maxceem commented Dec 7, 2020

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

@maxceem maxceem added the enhancement New feature or request label Dec 7, 2020
@maxceem maxceem changed the title Automatically get token during API requests using Axios [$60] Automatically get token during API requests using Axios Dec 14, 2020
@yoution
Copy link
Contributor

yoution commented Dec 30, 2020

@maxceem please assign to me

@maxceem
Copy link
Contributor Author

maxceem commented Dec 30, 2020

Contest https://www.topcoder.com/challenges/30160901 has been created for this ticket.

This is an automated message for maxceem via Topcoder X

@maxceem
Copy link
Contributor Author

maxceem commented Dec 30, 2020

Contest https://www.topcoder.com/challenges/30160901 has been updated - it has been assigned to yoution.

This is an automated message for maxceem via Topcoder X

yoution added a commit to yoution/taas-app that referenced this issue Dec 30, 2020
@maxceem
Copy link
Contributor Author

maxceem commented Jan 6, 2021

This is an internal refactoring which doesn't require QA.

@maxceem
Copy link
Contributor Author

maxceem commented Jan 6, 2021

Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30160901

This is an automated message for maxceem via Topcoder X

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants