diff --git a/infrastructure/oauth.py b/infrastructure/oauth.py index 56062ce..d105ec0 100644 --- a/infrastructure/oauth.py +++ b/infrastructure/oauth.py @@ -125,6 +125,8 @@ def create_oauth_blueprint(app_name: str) -> Blueprint: async def logout(): qsession.pop(SESSION_USER_KEY, None) qsession.pop("cart_sid", None) - return redirect("/") + # Redirect to blog home — avoids re-auth loop on apps that require login + from shared.infrastructure.urls import blog_url + return redirect(blog_url("/")) return bp