Ultimate Supabase OAuth Component

Hi Streamlit Community,

I am currently working on a streamlit UI project with this component https://pypi.org/project/streamlit-supabase-auth/ made by @sweatybridge and it works really well, however it only does so inside my dev venv.

Some of the reasons why I think this component is great :sparkles::

  • I am able to maintain the Supabase session even if a reload the page, which is AWESOME.
  • I lose conversation history as soon as I reload it but I could probably obtain it in real-time straight from Supabase since the components maintain the session open until I logout.
  • Awesome way to track usage straight from Supabase for each page and click as well. You could track everything with the proper code and session state variables. Who needs to pay for analytics :smile:

HOWEVER, I cannot get the same results in production since I have not been able to change the localhost3000 issue or add a new redirection URI to the current frontend code.

http://localhost:8501/#access_token=eyJhbGciOiJIU… DEV VENV Works!
http://localhost:3000/#access_token=eyJhbGciOiJIU… Docker, Replit, Streamlit Cloud. Doesn’t work :frowning:

Why does it work so well in Dev but not so well in Production? Am I missing something?

I am not sure if the culprit is that an update is needed on the App.tsx file of the frontend or that the latest Streamlit version 1.32.0 just doesn’t allow getting the access tokens from the url, but that’d be weird since it works in development, right? :face_with_monocle:

Any tips on how to fix this issue would be appreciated. Thanks a bunch

I added a demo just in case ppl might find it inspiring and maybe some of the awesome programmers in the community could easily tackle the issue @andfanilo

Luis
questmind-ui-demo