SerializersΒΆ

You can define your custom serializers for each endpoint without overriding urls and views by adding JWT_ALLAUTH_SERIALIZERS dictionary in your django settings. Possible key values:

Example configuration:

JWT_ALLAUTH_SERIALIZERS = {
    'LOGIN_SERIALIZER': 'path.to.custom.LoginSerializer',
    'TOKEN_SERIALIZER': 'path.to.custom.TokenSerializer',
    ...
}