Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ async def verify_email(token: str, db: Session = Depends(get_db)):
|
|
251 |
db.commit()
|
252 |
|
253 |
# Create access token for the user after successful verification
|
254 |
-
access_token = create_access_token(data={"sub": user.email}, expires_delta=timedelta(minutes=
|
255 |
|
256 |
# Redirect to the protected route and set the token in a secure, HTTP-only cookie
|
257 |
response = RedirectResponse(url="/protected")
|
|
|
251 |
db.commit()
|
252 |
|
253 |
# Create access token for the user after successful verification
|
254 |
+
access_token = create_access_token(data={"sub": user.email}, expires_delta=timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES))
|
255 |
|
256 |
# Redirect to the protected route and set the token in a secure, HTTP-only cookie
|
257 |
response = RedirectResponse(url="/protected")
|