This useEffect is in the part of the head in my website so whenever the website refresh, it authenticates whether the token expires or not. and this component is routed but