From 28bd36fc0ed64c3f861fd9256e7f61653f569ee2 Mon Sep 17 00:00:00 2001 From: zobweyt Date: Fri, 15 Nov 2024 00:19:23 +0300 Subject: [PATCH] fix: update `TOKEN_URL` --- src/api/auth/deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/auth/deps.py b/src/api/auth/deps.py index 0298b11..9341bc7 100644 --- a/src/api/auth/deps.py +++ b/src/api/auth/deps.py @@ -3,7 +3,7 @@ from fastapi import Depends from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm -TOKEN_URL = "api/v1/auth/login" +TOKEN_URL = "auth/login" OAUTH2_BEARER = OAuth2PasswordBearer(TOKEN_URL) OPTIONAL_OAUTH2_BEARER = OAuth2PasswordBearer(TOKEN_URL, auto_error=False)