From dfe02802377e0006a63b3f2c79069ed268d5b7ba Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 6 Mar 2023 12:50:18 -0500 Subject: [PATCH] Minor fix to avoid an endless set of error messages if your session times out and you are using the builtin openid. --- spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py index 7b9a268ae..b36ef2257 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py @@ -101,7 +101,7 @@ def verify_token( refresh_token ) ) - if auth_token and "error" not in auth_token: + if auth_token and "error" not in auth_token and "id_token" in auth_token: tld = current_app.config["THREAD_LOCAL_DATA"] tld.new_access_token = auth_token["id_token"] tld.new_id_token = auth_token["id_token"]