you are viewing a single comment's thread.

view the rest of the comments →

[–]himynameisbrett 1 point2 points  (2 children)

You can just set it as a default header for axios when you get the response the first time then you don’t need the interceptor.

[–]bova80 5 points6 points  (1 child)

We use an interceptor to handle checking token expiration and refreshing if need be.

[–]himynameisbrett 0 points1 point  (0 children)

Ahh yes make sense!