Setting up password for new multipageapp

Hi all,

I was using streamlit to build a multipage app. I needed to add simple authentication (username/password) for logging in to app. Since i was using the previous multipage model, i was doing something like this in my main script -

if check_password():
# Add all your application here
# The main app

with the introduction of new support for multipage - Introducing multipage apps! 📄

i am not able to use login to the whole app, if i do this -

if name == “main”:
if check_password():

it only restricts the check to main/default page. Any ideas on how i can set up authentication with this new feature for the app as a whole ?


We have the same problem…