Skip to content

Commit

Permalink
Update customizing_token_claims.rst (#714)
Browse files Browse the repository at this point in the history
In ""TOKEN_OBTAIN_SERIALIZER": "rest_framework_simplejwt.serializers.MyTokenObtainPairSerializer"," replaced "rest_framework_simplejwt" to "my_app" to make it clearer that it should be a custom path, since the Django app folder having the same name as the library was confusing and hard to fix if copy and pasting in a hurry.
  • Loading branch information
rodrq committed Jun 21, 2023
1 parent aa077a4 commit 605cec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/customizing_token_claims.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generated by the ``TokenObtainPairView``:
SIMPLE_JWT = {
# It will work instead of the default serializer(TokenObtainPairSerializer).
"TOKEN_OBTAIN_SERIALIZER": "rest_framework_simplejwt.serializers.MyTokenObtainPairSerializer",
"TOKEN_OBTAIN_SERIALIZER": "my_app.serializers.MyTokenObtainPairSerializer",
# ...
}
Expand Down

0 comments on commit 605cec4

Please sign in to comment.