From f119f2f2b396b9dc9488bdc047afd12715a02fd9 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 9 Mar 2023 11:39:59 +0000 Subject: [PATCH] better logs --- src/security.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/security.py b/src/security.py index f04c616..ddd307f 100644 --- a/src/security.py +++ b/src/security.py @@ -20,6 +20,7 @@ async def get_bearer_auth(credentials: HTTPAuthorizationCredentials = Depends(be # validates the Bearer token in the case that it requires it access_token = credentials.credentials valid_user, info = authenticate_user(access_token) + logger.debug(f"TOKEN authentication: {valid_user=} {info=}") if valid_user: return info raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,