Skip to content

Commit

Permalink
add none check on code
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 13, 2024
1 parent dd40863 commit ada9b17
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 @@ -57,7 +57,7 @@ def google_sso_button():
st.query_params["prompt"] = ""
# Get cookie of "code", if it exists
code = get_cookie("code", "get_code_cookie")
if code != "":
if code != "" and code is not None:
response = requests.post(
f"{auth_uri}/v1/oauth2/google",
json={
Expand Down

0 comments on commit ada9b17

Please sign in to comment.