I'm currently working on a project and I want a good way to send a POST request to refresh a token I'm using Axios interceptors to check before every request if the current access token is expired or not. if it is, I'm sending the POST request to refresh the token. My question is: how can I get this refresh token?
const response = await axios.post(
`/auth/refresh`,
{
refreshToken: (how can I get it?),
}
);