Spaces:
Sleeping
Sleeping
Update core/security.py
Browse files- 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="/
|
|
|
|
| 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")
|