From 0d94d512144230340e619c59f91a8cb80eacdf3b Mon Sep 17 00:00:00 2001 From: Rodri <84244902+rodrq@users.noreply.github.com> Date: Tue, 13 Jun 2023 11:07:34 -0300 Subject: [PATCH] Update customizing_token_claims.rst 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. --- docs/customizing_token_claims.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/customizing_token_claims.rst b/docs/customizing_token_claims.rst index e59156903..ad693386b 100644 --- a/docs/customizing_token_claims.rst +++ b/docs/customizing_token_claims.rst @@ -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", # ... }