Open Sky-Da-Silva opened 1 week ago
Consider implementing.
Using cache is sharing state across different redirect streamlit session.
Because we use a pop-up window and watch the redirect from parent, the parent window will not get refreshed.
So maybe we can try to control the data within st.session_state
I was just having a look around and noticed something that I think should be changed. Currently, the function
_generate_pkce_pair
is cached with @st.cache_data - this means that when_generate_pkce_pair(pkce)
is called, it won't generate a new key as the function's result will be cached.This behavior is problematic because the code_verifier and code_challenge should be unique for each authorization request to ensure security. Caching this function causes the same values to be reused, which is not desired.
I think the line
@st.cache_data(ttl=300)
needs to be removed. I'm new to streamlit so I might be misunderstanding!