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

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Aug 17, 2015
1 parent 716ffdf commit 7dc2ce7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ Default is `datetime.timedelta(days=7)` (7 days).
Specify a custom function to generate the token payload

### JWT_PAYLOAD_GET_USER_ID_HANDLER
If you store `user_id` differently than the default payload handler does, implement this function to fetch `user_id` from the payload.
If you store `user_id` differently than the default payload handler does, implement this function to fetch `user_id` from the payload. **Note:** Will be deprecated in favor of `JWT_PAYLOAD_GET_USERNAME_HANDLER`.

### JWT_PAYLOAD_GET_USERNAME_HANDLER
If you store `username` differently than the default payload handler does, implement this function to fetch `username` from the payload.

### JWT_RESPONSE_PAYLOAD_HANDLER
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.
Expand Down

0 comments on commit 7dc2ce7

Please sign in to comment.