Hey Streamlit team, thanks for all of the great work!
I’m attempting to add authentication using supabase according to the docs here, but I seem to be missing something.
When a user logs in on their session, that session is persisted across all other users. Two different users can’t be logged in at the same time. And any visitor is automatically authenticated if someone else is logged in.
I believe the problem comes from this line of code here:
This returns the latest user across all sessions, not necessarily the active user’s session.
Loom Demo Video:
Problem Explanation Video
Example App URL:
Streamlit Version: streamlit==1.28.2
Thanks for your help on this!