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.
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,3 +168,10 @@ Specify a custom function to generate the token payload
168
168
169
169
### JWT_PAYLOAD_GET_USER_ID_HANDLER
170
170
If you store `user_id` differently than the default payload handler does, implement this function to fetch `user_id` from the payload.
171
+
172
+
### JWT_AUTH_HEADER_PREFIX
173
+
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.
174
+
175
+
Another common value used for tokens and Authorization headers is `Bearer`.
0 commit comments