Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded to >=1.30 #61

Merged
merged 1 commit into from May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -14,6 +14,6 @@ dependencies = [
"stripe",
"httpx-oauth",
"pyjwt",
"streamlit>=1.27.0",
"streamlit>=1.30.0",
]
requires-python = ">=3.8.0"
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -3,4 +3,4 @@ httpx-oauth
pyjwt
st-paywall
mkdocs
streamlit>=1.27.0
streamlit>=1.30.0
4 changes: 2 additions & 2 deletions src/st_paywall/google_auth.py
Expand Up @@ -81,13 +81,13 @@ async def get_access_token(
def get_access_token_from_query_params(
client: GoogleOAuth2, redirect_url: str
) -> OAuth2Token:
query_params = st.experimental_get_query_params()
query_params = st.query_params.get_all()
code = query_params["code"][0]
token = asyncio.run(
get_access_token(client=client, redirect_url=redirect_url, code=code)
)
# Clear query params
st.experimental_set_query_params()
st.query_params.clear()
return token


Expand Down