How to hide all pages before login

One way to do this is use GitHub - blackary/st_pages: An experimental version of Streamlit Multi-Page Apps. There is a hide_pages() function which you can see at work

You can see the full app in action here

Thanks this helped a lot. It worked.