Skip to content

Commit

Permalink
clear query params on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 13, 2024
1 parent 9b94823 commit 6b21e19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ def log_out_button():
if token != "":
if st.button("Log Out"):
set_cookie("token", "", 1, "logout_set_token")
st.query_params["email"] = ""
st.query_params["token"] = ""
st.query_params.clear()
st.session_state["token"] = ""
st.success("You have been logged out. Redirecting to login page...")
st.markdown(
Expand Down

0 comments on commit 6b21e19

Please sign in to comment.