Ali2206 commited on
Commit
033aad7
·
verified ·
1 Parent(s): c242aea

Update core/security.py

Browse files
Files changed (1) hide show
  1. 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(tokenUrl="/auth/login")
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