mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.37k stars 229 forks source link

Put Logout-Button on Streamlit Sidebar #139

Closed weissenbacherpwc closed 4 months ago

weissenbacherpwc commented 4 months ago

Hi,

how can I put the Logout button onto the Streamlit Sidebar? At the moment I only see it in my main content.

if st.session_state["authentication_status"]:
    authenticator.logout()
    st.sidebar.write(f'Welcome *{st.session_state["name"]}*')
mkhorasani commented 4 months ago

Dear @weissenbacherpwc, please refer to the README. You can specify the location as main, sidebar, or unrendered.