From ada9b175e656fff579e3c41d86b9765d6cef7b2e Mon Sep 17 00:00:00 2001 From: Josh XT Date: Wed, 12 Jun 2024 21:54:07 -0400 Subject: [PATCH] add none check on code --- components/Auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Auth.py b/components/Auth.py index 4baa2f6f..7cb08f58 100644 --- a/components/Auth.py +++ b/components/Auth.py @@ -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={