Remove / Hide Layout Widget

Hello,
I am building an authentication form (Log in + Sign in) using streamlit-authenticator, for that i created a “login menu” using this code :
placeholder = st.empty()
with placeholder.container():
tab = st.sidebar.radio(label ="Menu", options=["Log in", "Sign in"])
if tab=="Log in" :
name, authentication_status, username = authenticator.login("Login", "main")
if authentication_status == False:
st.error("Username/password is incorrect")
if authentication_status == None:
st.warning("Please enter your username and password")
if authentication_status:
placeholder.empty()
# The App

The heck is that even using the placeholder, i still have the radio displayed after login.
Is there a way to hide/remove “tab” after login?
Thank you !

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