jazzband / django-rest-knox

Authentication Module for django rest auth
MIT License
1.18k stars 213 forks source link

Update serializers.py #200

Closed lijoev closed 4 years ago

lijoev commented 4 years ago

I need to get the user id also along with the username field. So added 'id' in the field list

johnraz commented 4 years ago

I suggest you roll your own serializer. Exposing internal ids like this is not something everyone would want and actually I would recommend using some kind of uuid instead. Thanks for your time anyway.