Gregniuki commited on
Commit
f0b2666
1 Parent(s): 0872457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=auth_views.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")
 
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")