79471571

Date: 2025-02-27 04:09:09
Score: 2
Natty:
Report link

Well thought to share an answer on how I dealt with this problem.

I created a flow chart on the process of Authentication and what I was missing is the state which checks whether the checkAuthAction call is completed or not. Only after that do I need to check the isAuthenticated state to navigate to the login screen.

I have shared the flow chart for better understanding.

Hope this makes sense.

Thanks!

Flow Chart

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Keyur