Ali2206 commited on
Commit
d1dd9f1
·
verified ·
1 Parent(s): 7eb0e9b

Update core/security.py

Browse files
Files changed (1) hide show
  1. core/security.py +2 -1
core/security.py CHANGED
@@ -7,7 +7,8 @@ from core.config import SECRET_KEY, ALGORITHM, ACCESS_TOKEN_EXPIRE_MINUTES
7
  from db.mongo import users_collection
8
 
9
  # OAuth2 setup — adjust tokenUrl if your API has a prefix like /api
10
- oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/login") # or "/api/login" if using APIRouter(prefix="/api")
 
11
 
12
  # Password hashing context
13
  pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
 
7
  from db.mongo import users_collection
8
 
9
  # OAuth2 setup — adjust tokenUrl if your API has a prefix like /api
10
+ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/login")
11
+
12
 
13
  # Password hashing context
14
  pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")