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
{{ message }}
This repository was archived by the owner on May 26, 2020. It is now read-only.
@@ -175,6 +178,22 @@ Specify a custom function to generate the token payload
175
178
### JWT_PAYLOAD_GET_USER_ID_HANDLER
176
179
If you store `user_id` differently than the default payload handler does, implement this function to fetch `user_id` from the payload.
177
180
181
+
### JWT_RESPONSE_PAYLOAD_HANDLER
182
+
Responsible for controlling the response data returned after login or refresh. Override to return a custom response such as including the serialized representation of the User.
You can modify the Authorization header value prefix that is required to be sent together with the token. The default value is `JWT`. This decision was introduced in PR [#4](https://github.com/GetBlimp/django-rest-framework-jwt/pull/4) to allow using both this package and OAuth2 in DRF.
0 commit comments