I have an app hosted on the community cloud: https://spellbee.streamlit.app/
I want to add a user login component to this to retain user history and implement a leaderboard of sorts.
I am currently trying the streamlit_login_auth_ui component, but it saves new users in a _secret_auth.json file, which I believe will be overwritten whenever a new version of the app is deployed to the cloud?
Is there a component that would let me enable user login that remains persistent? I would also prefer to retain an option for the users to access the dashboard as a guest without logging in.
(If you accidentally click a reaction, you can click on it again to take it back. Edit: Apparently only for a brief period of time before it locks…)
How secure of system are you desiring? If you want simplicity, you could just set up an external data source to save username, pin/password, and whatever saved info you want per user. I would not recommend a homebrewed-from-scratch solution for anything of importance but if it’s a low-stakes game and users are warned accordingly it may be sufficient until easier implementations are available if you don’t want to build a custom component yourself. (Just make sure to warn users that the pin/password is not stored encrypted, so please don’t use your debit card pin or a password from another system! )
The option to click seems to be unavailable for some reason once already reacted.
Security is not a concern. I just want some user login and identification to save user history across sessions.
I think I’ll build one myself using an external data source. Thanks
I cannot find your responses anymore, but I hope you realize how counterproductive your response was for me. Not only did it not help in the first place, but I wasted time researching a solution that didn’t even exist.
Please don’t do this. There is a reason StackOverflow does not allow such responses anymore.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.