From 18ab6f97c822835611db6e0652fd237083f95ebd Mon Sep 17 00:00:00 2001 From: CGarces-Apser <100283366+CGarces-Apser@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:27:41 +0200 Subject: [PATCH] fix returned type from get_token_from_bearer Signed-off-by: CGarces-Apser <100283366+CGarces-Apser@users.noreply.github.com> --- credentials.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/credentials.py b/credentials.py index 6a5d8af..5fb15c3 100644 --- a/credentials.py +++ b/credentials.py @@ -58,9 +58,8 @@ def verify_jwt(credentials: Credentials) -> bool: async def get_token_from_bearer( - request: Request, http_credentials: HTTPAuthorizationCredentials = Depends(bearer_scheme), -) -> Credentials: +) -> str: if http_credentials: if not http_credentials.scheme == "Bearer": raise HTTPException(