-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to Hide Sidebar on Login Page Until Authentication is Complete #192
Comments
Hi @mkhorasani, |
Hi @shakkeel1330, thank you for reaching out. Unfortunately, not yet, I'm currently inundated with a relatively large backlog of items to address. Will try my best to attend to this at some point in the near future too! |
This works for me:
|
Description:
I am using the streamlit-authenticator package in my Streamlit app, which has two pages: the main page and a secondary page. The sidebar displays both page options when the app loads, even before the user is authenticated.
To provide a better user experience, I want the sidebar to be hidden on the login page and only become visible after the user has successfully logged in.
I've tried using CSS to hide the sidebar initially, but I am unsure of the best way to integrate this with the streamlit-authenticator package. I would appreciate guidance on how to accomplish this.
Sample Code:
Below is an abstracted version of my current setup:
Main Page:
Second page:
Directory structure:
├───src
│ ├───pages
│ │ └───second_page.py
│ ├───services
│ ├───utils
│ ├───main.py
├──────
streamlit run main.py
Expected Outcome:
Any assistance on how to achieve this would be greatly appreciated!
The text was updated successfully, but these errors were encountered: