Limit by oauth2 user
iPurya opened this issue · comments
Purya Jafari commented
I want to limit it by user... i didnt find any reference for key_func how works.
@app.post("/imgocr")
@limiter.limit("1/second;12/minute;200/hour")
async def imgocr(request: Request, file: UploadFile = File(...), user= Depends(get_current_user)):
...
Ali-Akber Saifee commented
You can find the documentation for the limiting functions here
Ali-Akber Saifee commented
Closing due to inactivity. Please re open if there’s any follow up questions