How to handle auth with solid-router?
Given an app where users have access to additional routes when they are logged in, how to set up the router so that it,
- redirect users to "home" if they are logged in and happen to navigate to the login or signup page?
- redirect users to login page when visiting a route that requires authentication but they are not logged in?
Is the following a good starting point? Where would the redirects be inserted?
- redirect users to "home" if they are logged in and happen to navigate to the login or signup page?
- redirect users to login page when visiting a route that requires authentication but they are not logged in?
Is the following a good starting point? Where would the redirects be inserted?
