Can anyone help with this one? Thank you in advance
Example:
from st_paywall import add_auth
add_auth(required=False)
=
Can anyone help with this one? Thank you in advance
Example:
from st_paywall import add_auth
add_auth(required=False)
=
Hi,
The code you have provided is incomplete, it is missing where you use st.experimental_get_query_params.
i did not use the st.query_params at all, this single line gives error
what you are getting is a warning, not a code error.
I understand, but why do i get the warning? Would my web app works after 04-11-2024 like it is working now?
if you want the application to be unaffected by updates, you should work with virtual environments,
Example:
# Create a virtual environment
python -m venv myenv
# Activate the virtual environment
# On Windows
.\myenv\Scripts\activate
# On macOS/Linux
source myenv/bin/activate
There is a critical open issue on st_paywall. Be careful in using it or not use at all for a moment. Also the use of experimental_get_query will soon become problematic as you had discovered.
As an alternative, you can use the streamlit oauth when using google account to login on your app. I tried this locally and it worked.
Just in case you want to explore more about this google auth method, I have my own implementation of google user authentication. This is not a library that can be found in pypi. It works both locally and in the cloud under test mode meaning only those email I allowed can access the app. The google auth functions can be found in modules/google.py.
Thank you very much for reply! Would you be able to provide any information when this issue should be fixed? I rely on st-paywall, without which my website would not function as needed. And for how limited my programming experience is, streamlit along with st-paywall provide exactly what I need.
You may visit the st_paywall github repository. Look under the issues, commits, new releases dev log.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.