Skip to content

Commit

Permalink
go home after setting query params
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 13, 2024
1 parent 8eacce9 commit 01287ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def google_sso_button():
st.query_params["state"] = ""
st.query_params["authuser"] = ""
st.query_params["prompt"] = ""
st.rerun()
st.markdown(
f'<meta http-equiv="refresh" content="0;URL=/">',
unsafe_allow_html=True,
)
# Get cookie of "code", if it exists
code = get_cookie("code", "get_code_cookie")
if code != "" and code is not None:
Expand Down

0 comments on commit 01287ea

Please sign in to comment.