diff --git a/shared/infrastructure/factory.py b/shared/infrastructure/factory.py index 6505890..b6b6e52 100644 --- a/shared/infrastructure/factory.py +++ b/shared/infrastructure/factory.py @@ -179,6 +179,7 @@ def create_base_app( qs.pop("uid", None) qs.pop("grant_token", None) qs.pop("cart_sid", None) + g.user = None return from sqlalchemy import select @@ -199,6 +200,7 @@ def create_base_app( qs.pop("uid", None) qs.pop("grant_token", None) qs.pop("cart_sid", None) + g.user = None return # Case 2: not logged in — prompt=none OAuth (GET, non-HTMX only)