Update app.py
Browse files
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=
|
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
|