I'm trying to implement a system, where the users can access the dashboard only if they are signed in. New users will be directed to the home page. If the user is logged in, they should be directly routed to the dashboard instead of the home page.
The dashboard is a completely different entity and doesn't contain any home page components. The home page only has sign-in and signup buttons through which the users can login or create an account.
I'm using React for both the homepage and dashboard. Should I implement both of them in a single react app or as two different apps.
What are some of the best practices and authentication methods to implement this?
