From 2a81544701d1a73dc06f6e46ad96330cf81969a4 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 4 Oct 2025 16:59:05 -0600 Subject: [PATCH] Correction on restricted path checking (auth-host). --- passkey/fastapi/auth_host.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/passkey/fastapi/auth_host.py b/passkey/fastapi/auth_host.py index e6f1d7d..78e903d 100644 --- a/passkey/fastapi/auth_host.py +++ b/passkey/fastapi/auth_host.py @@ -25,9 +25,7 @@ def is_ui_path(path: str) -> bool: def is_restricted_path(path: str) -> bool: """Check if the path is restricted (API/admin endpoints).""" - return path.startswith( - ("/auth/api/admin", "/auth/api/user", "/auth/api/ws", "/auth/ws/") - ) + return path.startswith(("/auth/api/admin/", "/auth/api/user/", "/auth/ws/")) def should_redirect_to_auth_host(path: str) -> bool: