Redirect

How can i redirect the app into other page after sign in authentication

Hi @Daniyal56 -

For simple authentication schemes, you can use the overall design property of Streamlit to check if the password entered is correct, then use an if statement to display the code behind the authentication. Something like (untested):


pw = st.text_input("Password", type = "password")

if pw == "hrtoiungoifhtihot":
    #authenticated content

Best,
Randy

Actually, We were trying, user sign-in on main page not in sidebar and redirect to other page but signin page is not getting hide.

Now we are getting authenticate the user’s in sidebar by getting input text of email and password.