You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to implement the rate limitation based on JWT token. But in utils.py I can only see functions to get user's ip address. So is that possible to customize this. For example I can get the user info from request.state.user. How can I limit based on that?
The text was updated successfully, but these errors were encountered:
I need to implement the rate limitation based on JWT token. But in
utils.py
I can only see functions to get user's ip address. So is that possible to customize this. For example I can get the user info fromrequest.state.user
. How can I limit based on that?The text was updated successfully, but these errors were encountered: