Gregniuki commited on
Commit
f7604d0
1 Parent(s): e67df2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ async def login(form_data: OAuth2PasswordRequestForm = Depends(), db: Session =
114
  if user and user.is_verified: # Check if user is verified
115
  access_token = create_access_token(
116
  data={"sub": user.email},
117
- expires_delta=timedelta(minutes=auth_views.ACCESS_TOKEN_EXPIRE_MINUTES)
118
  )
119
 
120
  # Redirect the user to the protected route with the token in the URL
 
114
  if user and user.is_verified: # Check if user is verified
115
  access_token = create_access_token(
116
  data={"sub": user.email},
117
+ expires_delta=timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
118
  )
119
 
120
  # Redirect the user to the protected route with the token in the URL