Skip to content

Commit

Permalink
add conds
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 13, 2024
1 parent d5251c4 commit 22c3cc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ def get_user():
else:
st.error(res)
google_token = google_sso_button()
if google_token != "":
if (
google_token != ""
and google_token is not None
and google_token != "None"
):
st.query_params["token"] = google_token
return get_user()
else:
Expand Down

0 comments on commit 22c3cc2

Please sign in to comment.