Answer the question
In order to leave comments, you need to log in
How to create cookies in react after response from server?
I have an authorization request to the server:
axios
.post(
"http://localhost:5000/api/auth/sign-in",
{ ...values },
)
.then((res) => {
const { token } = res.data;
//здесь мне нужно сохранить куки с токеном который пришел ответом от сервера
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question