DEV Community

Discussion on: MERN Stack Authentication Tutorial (Part 2 - The Frontend)

Collapse
 
rickystylz01 profile image
Ricardo Maya

I am trying to implement this while using axios and my question is for the useEffect in the Login.
when you are fetching, while using axios, would that be a get request then? or post? I was confused since you are sending the x-access-token header