I have a function:
export const refreshAuth = () => new Promise((resolve, reject) => getRefreshToken() .then(refreshJWT => axios.post