Open domlysi opened 1 year ago
+1
You can override the View class with your own DRF throttle
class UserGoogleLoginAPIView(SocialLoginView):
"""
Social Google login using Implicit Grant
"""
throttle_scope = "UserGoogleLoginAPIView"
adapter_class = GoogleOAuth2Adapter
So I was about to customize my throttle rates and noticed that dj-rest-auth has already defined
throttle_scope = 'dj_rest_auth'
.But why is it not
throttle_scope = 'dj_rest_auth_login'
throttle_scope = 'dj_rest_auth_regsiter'
and so on ...
This way, it would be extremely easy to customize the rates. Or am I missing something?