So every things look like fine but there is a critical problem for me
first its too complex when you want add more in header (in some other url i need send branchId on header for more than 200 Endpoint)
***second my registration is two step in one route
--1 call register api and response is a Authorization token key
--2 call mobile verification code api (this api need pass Authorization Token in header)
** Problem:
-on this case Authorization will not send becouse route is not changing
**solution
I'm thinking it will be great pass a function in props for manipulate exsiting instance of axios in header and change will be effect on all api call
like:
Hello Dear,
Thank You for making this great tools! I need one more feature about changing axios instance in provider
user scenario: 1- fire login api and will be receive the token 2- now other api needs the token in header
*but there is no way to manipulate existing AxiosProvider instance for the temporary fix i made a axios provider for all private route
router Js
PrivateRoute
So every things look like fine but there is a critical problem for me first its too complex when you want add more in header (in some other url i need send branchId on header for more than 200 Endpoint) ***second my registration is two step in one route --1 call register api and response is a Authorization token key --2 call mobile verification code api (this api need pass Authorization Token in header)
** Problem: -on this case Authorization will not send becouse route is not changing
**solution I'm thinking it will be great pass a function in props for manipulate exsiting instance of axios in header and change will be effect on all api call like: