use simpler dotenv file

This commit is contained in:
Osman Faruk Bayram 2025-05-05 16:13:41 +03:00
parent 171a94f174
commit 948eb75416
3 changed files with 4 additions and 11 deletions

View file

@ -49,7 +49,7 @@ async def login_for_access_token(
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Bearer"},
)
access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
access_token_expires = timedelta(minutes=30)
access_token = create_access_token(
data={"sub": user.username, "role": user.role, 'status': user.status}, expires_delta=access_token_expires
)