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")