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: