From 3189ed735a4bb42c09e9ee7cb162be7dac018fd9 Mon Sep 17 00:00:00 2001 From: ZifeRRoT Date: Mon, 14 Apr 2025 12:22:19 +0300 Subject: [PATCH] Fix token URL in OAuth2PasswordBearer initialization --- app/utils/deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/deps.py b/app/utils/deps.py index 9796195..edea76c 100644 --- a/app/utils/deps.py +++ b/app/utils/deps.py @@ -12,7 +12,7 @@ from config import settings, logger as logging from utils import security -oauth2_token = OAuth2PasswordBearer(tokenUrl="/login/access-token/") +oauth2_token = OAuth2PasswordBearer(tokenUrl="/login/access-token") async def get_current_user(token: str = Depends(oauth2_token)):