From 22c3cc2fa49bbe8186b69c2ebf095ad81a60ac1f Mon Sep 17 00:00:00 2001 From: Josh XT Date: Thu, 13 Jun 2024 00:07:11 -0400 Subject: [PATCH] add conds --- components/Auth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/Auth.py b/components/Auth.py index 1e23df74..ccf53b2d 100644 --- a/components/Auth.py +++ b/components/Auth.py @@ -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: