Spaces:
Sleeping
Sleeping
Update core/security.py
Browse files- core/security.py +4 -2
core/security.py
CHANGED
|
@@ -10,8 +10,10 @@ import logging
|
|
| 10 |
logger = logging.getLogger(__name__)
|
| 11 |
|
| 12 |
# OAuth2 setup
|
| 13 |
-
oauth2_scheme = OAuth2PasswordBearer(
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
# Password hashing context
|
| 16 |
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
| 17 |
|
|
|
|
| 10 |
logger = logging.getLogger(__name__)
|
| 11 |
|
| 12 |
# OAuth2 setup
|
| 13 |
+
oauth2_scheme = OAuth2PasswordBearer(
|
| 14 |
+
tokenUrl="/auth/login", # Correct path
|
| 15 |
+
scheme_name="JWT"
|
| 16 |
+
)
|
| 17 |
# Password hashing context
|
| 18 |
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
| 19 |
|