Open ibehnam opened 11 months ago
this is a good point, part of the problem here is that st-paywall needs to have multiple buttons, one for the login to the auth provider and one for the login to stripe / bmac if the user isn't subscribed, would it be sufficient to have something like a sidebar=True/False param? And then wherever you put the auth work, the buttons should pop up?
I'd have to test it, I think i'd also have to add st.empty() calls to make sure the buttons don't interfere with the rest of your app, but if this sounds sufficient i'd love to try it out @ibehnam
Yes, I think it'd be good to have sidebar=True/False and have the buttons pop up wherever the auth is called.
IMO it'd be cool if we could place the login button anywhere, just like a regular Streamlit component. I have disabled the sidebar in my app, and I don't see any way to use st-paywall outside of sidebar.