Skip to main content

streamlit-supabase-auth

Demo

Usage

Prerequisite:

  • python >= 3.7
import streamlit as st
from streamlit_supabase_auth import login_form, logout_button

session = login_form(
    url="https://xxxx.supabase.co",
    apiKey="<SUPABASE_KEY>",
    providers=["apple", "facebook", "github", "google"],
)
if not session:
    return

# Update query param to reset url fragments
st.experimental_set_query_params(page=["success"])
with st.sidebar:
    st.write(f"Welcome {session['user']['email']}")
    logout_button()

More details in example directory.

Develop

docker-compose up --build

Or manually, start the frontend

cd streamlit_supabase_auth/frontend
npm install
npm run start

Followed by the example app

RELEASE=DEV streamlit run example/app.py

Publish

cd component/frontend
npm run build
cd ../..

pip install build
python -m build

Known Issues

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_supabase_auth-1.0.2.tar.gz (639.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_supabase_auth-1.0.2-py3-none-any.whl (646.9 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_supabase_auth-1.0.2.tar.gz.

File metadata

  • Download URL: streamlit_supabase_auth-1.0.2.tar.gz
  • Upload date:
  • Size: 639.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for streamlit_supabase_auth-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a43ac1bfecdd5f7c434d18b7706f75d6f312335f5a2388869ef53cb1f7828a08
MD5 02d04b99bebf4ca462268c9fb7ecfc21
BLAKE2b-256 4b4f7f71fb15d7b61c6577eb83f9d7254dc25a10857c03da1363c9ad22bf22cd

See more details on using hashes here.

File details

Details for the file streamlit_supabase_auth-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_supabase_auth-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab90f8355789abf909f53976a714c7925a164cbc4b557aebc7cdb1a9ff7172fa
MD5 d9082c84bcaed32f59b7450ef392d958
BLAKE2b-256 89b16b78ced712137c37916a6b998e02b601c9bc5156cf24195a7b512d5f0fc5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page