bug when redirect user when token expired in react js
i need help, i try to redirect user when user are not authenticate specifically, when token is expired.
but when user redirected to login page, if user want login again. they have to click handlesubmit login twice to login.