From 1978264fb1c7158b63a8345c2477a1cd8dce3829 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Wed, 10 Dec 2025 10:41:07 -0500 Subject: [PATCH] Return none instead of false --- backend/services/users/authentication_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/users/authentication_service.py b/backend/services/users/authentication_service.py index 1a8bd41775..eac77443f8 100644 --- a/backend/services/users/authentication_service.py +++ b/backend/services/users/authentication_service.py @@ -81,7 +81,7 @@ async def authenticate(self, conn): decoded_token = base64.b64decode(credentials).decode("ascii") except UnicodeDecodeError: logger.debug("Unable to decode token") - return False + return None except (ValueError, UnicodeDecodeError, binascii.Error): raise AuthenticationError("Invalid auth credentials")