Posts by Yuri Pinheiro Bernardi • 1 point
1 post
-
-2
votes2
answers708
viewsQ: How can I catch error 401 when making a post using Reactjs Xios on a login screen?
I’m making a login screen, I have a function that posts an API sending user and password, and gets a token back from being correct (so far so good), or returns error 401, which is shown in the…