From 8857d60058ae963e2a7929ce04146152b9a860f1 Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Tue, 10 Feb 2026 09:02:45 +0100 Subject: [PATCH] remove comment to ignore type check --- kontor-api/src/core/security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kontor-api/src/core/security.py b/kontor-api/src/core/security.py index 2465900..df606c1 100644 --- a/kontor-api/src/core/security.py +++ b/kontor-api/src/core/security.py @@ -37,8 +37,8 @@ class OAuth2PasswordBearerWithCookie(OAuth2): super().__init__(flows=flows, scheme_name=scheme_name, auto_error=auto_error) async def __call__(self, request: Request) -> Optional[str]: - authorization: str = request.cookies.get("access_token") # type: ignore # changed to accept access token from httpOnly Cookie - + authorization: str = request.cookies.get("access_token") # changed to accept access token from httpOnly Cookie + scheme, param = get_authorization_scheme_param(authorization) if not authorization or scheme.lower() != "bearer": if self.auto_error: