diff --git a/docs/index.md b/docs/index.md index 0a476bb1..23fc2df9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -300,7 +300,7 @@ To achieve this functionality, the user might write a custom `Authentication`: ```python class JSONWebTokenAuthenticationQS(BaseJSONWebTokenAuthentication): def get_jwt_value(self, request): - return request.QUERY_PARAMS.get('jwt') + return request.query_params.get('jwt') ``` It is recommended to use `BaseJSONWebTokenAuthentication`, a new base class with no logic around parsing the HTTP headers.