Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit fc3d71e

Browse files
committed
Add docs for JWT_AUTH_HEADER_PREFIX
1 parent 9e5f572 commit fc3d71e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,10 @@ Specify a custom function to generate the token payload
168168

169169
### JWT_PAYLOAD_GET_USER_ID_HANDLER
170170
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`.
176+
177+
Default is `JWT`.

0 commit comments

Comments
 (0)