Skip to content

Commit

Permalink
check query params
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 13, 2024
1 parent c960b59 commit 6aee388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def sso_redirect(provider: str):
and st.query_params["token"] != "None"
):
get_user()
if "token" not in st.session_state and "code" not in st.query_params:
if "token" not in st.query_params and "code" not in st.query_params:
# Reload to ../ page
st.markdown(
f'<meta http-equiv="refresh" content="0;URL=../">',
Expand Down

0 comments on commit 6aee388

Please sign in to comment.