Multi page app loading endlessly when when typing route

Hi! I’m very new to streamlit, and I’m trying to run a multi page application that requires authentication.

Therefore, whenever an user logs in, he is redirected to the page front.py, and it’s code is as follows

if st.session_state['authentication_satus'] == True:
    mainDash()
else:
    st.write("Sem permissão para visualizar a dashboard. Faça login.")

In the login page, I’m using the switch_page method to redirect an user. Works fine if I log in.

Problem is, if I reload the page, or even if I type localhost:8501/front strainght from the browser, the app keeps loading endlessly. No error messages, nothing. Just keeps loading.

Is there something I’m missing here?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.