DEV Community

Discussion on: useAxios: React hook for any Axios call

 
sroehrl profile image
neoan

Unfortunately I have nothing I can share, no. But it shouldn't be hard:
We utilize axios interceptors to check if a used is authenticated and attach the JWT token accordingly. With hookState , recoil or redux (whatever you use), you can then assign the transactions accordingly.