Authentication boilerplate with Firebase Web API

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 :slight_smile:

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!

3 Likes

Hi @marduk,

Thanks for sharing! Have you considered using st.experimental_connection for the connection piece?

2 Likes

On our to-do list! Hopefully we make it on time for the Connections Hackathon :balloon:

1 Like

Awesome! Yes, you still have until the 4th of August!

1 Like

Unfortunately, the link to repository is no longer working.
Does anybody knows if it is closed or moved?

Hey there @karelin ,

I cleaned my repos some weeks ago and forgot about this - it is now back online. Hope it’s useful!

1 Like

Great! Thank you!

1 Like

Thanks for sharing :slight_smile:

1 Like