use simpler dotenv file
This commit is contained in:
parent
171a94f174
commit
948eb75416
3 changed files with 4 additions and 11 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue