Hi everyone,
After launching our MVP using Streamlit for the frontend, we wanted to start sharing some learnings with the community. Hope you find them helpful
This first repo is a simple boilerplate for authentication with Firebase’s Web API. I know there are already a few posts on (and even community libraries for) authentication in Streamlit; we put together this example with the following in mind:
-
Ready-to-go email and password authentication for your Streamlit app (UI, API, session state management, enough error handling, loading/success/error messages, etc.). Just configure your Firebase project and add your Web API key to
.streamlit/secrets.toml
. -
Minimal external libraries (only
requests
for the API calls) -
No custom components (only native Streamlit widgets)
Note: Cookies and session management (viz. session concurrency) are complex enough for their own thread and repo, so not included in this example.
Have a great one!