Answer the question
In order to leave comments, you need to log in
How to make authorization with a token?
There is an API that returns a token.
This token must be substituted in all requests.
If the request returned a token error, you need to redirect to the authorization page and get the token again.
Plz tell me how to do this easily?
Answer the question
In order to leave comments, you need to log in
make an axios instance where you will put tokens from cookies
With the help of hands and a little head
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question