My application requires a logged in user to use. Whenever someone navigates to my app, no matter how they enter the app, I want to render a login template if the user is not logged in.
I would assume what i could do, is in each of my routes, manually check in an if() statement if theres a logged in user, and if not manually redirect to the login template. Of course, this would just be me repeating code.
Is there a simpler way to prevent a user from using the app without being logged in with FlowRouter? Also using BlazeLayout currently, if that matters.