Ashwani132003 / Ashwani132003/LangBot

st.experimental_set_query_params in account

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

It looks like st.experimental_set_query_params is deprecated in streamlit and there isn't a replacement. Was this a key component to set the params in account.py line 114?

```
def get_access_token_from_query_params(
client: GoogleOAuth2, redirect_url: str
) -> OAuth2Token:
query_params = st.experimental_get_query_params()
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()
print('token')
return token
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading account.py around line 114 and inspect get_access_token_from_query_params, especially the query-parameter clearing call. Then verify the supported Streamlit query-parameter API and confirm that the OAuth callback still clears the parameters after token retrieval.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.