79699049

Date: 2025-07-12 06:27:44
Score: 0.5
Natty:
Report link

In my opinion you should use the middleware of react to check if the cookie is present or not and based on that redirect the user to auth pages or to the dashboard. You can use react router for redirecting. Once the token is found in the cookie you can then call your validation route to check if the user token is valid or not.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Umair Ahmed