Open seankwilliams opened 11 months ago
@seankwilliams Do you supposed this needs to be fixed by adding some sort of "isLoggedIn" conditional on each affected page, or do you have other suggestions?
@kmid5280 I am not sure. I'd look around to see if there are any best practices for other apps like Comrad, that are running with a separate static asset server and API server.
@kmid5280 Or rather, running those on different ports.
If you are logged out and visit pages like https://comrad.kgnu.org/reporting/charting, you see the page but cannot do anything.
Right now, the app only redirects users to the login screen if they are unauthenticated when an API request happens. It should redirect users to the login page when directly visiting pages like https://comrad.kgnu.org/reporting/charting