How to stop pages from loading without user login


#1

I am using accounts-password , facebook and google it is working as expected but when I logout and try to load a different page of my app other than login page it loads successfully which I don’t want . I want to route the user to login page if he/she tries to load a page without login.
Please help