Any alternate dictionary forms of storage I could store my oauth_state or flow object that ain’t wiped by st.session_state? For some reason when I get st.query_params[“state”] and st.session_state[“oauth_state”] after these lines of code:
if "oauth_flow" not in st.session_state:
flow = Flow.from_client_secrets_file(
"credentials.json",
scopes=SCOPES,
redirect_uri=REDIRECT_URI,
)
authorization_url, state = flow.authorization_url(
access_type="offline",
prompt="consent",
)
st.session_state["oauth_flow"] = flow
st.session_state["oauth_state"] = state
st.session_state["authorization_url"] = authorization_url
Somehow the memory of st.session_state is not constant when a new tab is opened. I don't know what module or dictionary to use that is easy-to-implement and stuff. Thanks