Skip to content

Commit 605cec4

Browse files
authored
Update customizing_token_claims.rst (#714)
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.
1 parent aa077a4 commit 605cec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/customizing_token_claims.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generated by the ``TokenObtainPairView``:
3232
3333
SIMPLE_JWT = {
3434
# It will work instead of the default serializer(TokenObtainPairSerializer).
35-
"TOKEN_OBTAIN_SERIALIZER": "rest_framework_simplejwt.serializers.MyTokenObtainPairSerializer",
35+
"TOKEN_OBTAIN_SERIALIZER": "my_app.serializers.MyTokenObtainPairSerializer",
3636
# ...
3737
}
3838

0 commit comments

Comments
 (0)