Testys commited on
Commit
104a928
1 Parent(s): ef3f51e

Making new corrections to extraction

Browse files
Files changed (1) hide show
  1. users/routes.py +1 -1
users/routes.py CHANGED
@@ -109,7 +109,7 @@ async def face_login(file: UploadFile = File(...), db: Session = Depends(get_db)
109
 
110
  access_token_expires = timedelta(minutes=int(os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", "30")))
111
  payload = {"id": user.id, "sub": user.email}
112
- token = get_token(payload, db)
113
 
114
  os.remove(image_path)
115
  return JSONResponse(content=token.dict(), status_code=status.HTTP_200_OK)
 
109
 
110
  access_token_expires = timedelta(minutes=int(os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", "30")))
111
  payload = {"id": user.id, "sub": user.email}
112
+ token = await get_token(payload, db)
113
 
114
  os.remove(image_path)
115
  return JSONResponse(content=token.dict(), status_code=status.HTTP_200_OK)