django-rest-framework-jwt icon indicating copy to clipboard operation
django-rest-framework-jwt copied to clipboard

DeprecationWarning: The following fields will be removed in the future: `email` and `user_id`.

Open ajendrex opened this issue 5 years ago • 1 comments

Hello,

I am using email instead of username for authentication. So my custom user model does not have username field. My code is based on this

Now I am setting up jwt authentication and I receive the following warning:

rest_framework_jwt/utils.py:39: DeprecationWarning: The following fields will be removed in the future: `email` and `user_id`.
    DeprecationWarning

Is there something that I can do to overcome this (other than using username, which will not be an option)

thanks!

ajendrex avatar Aug 06 '19 19:08 ajendrex

Please look at #484. The project is unmaintained

string-areeb avatar Aug 08 '19 13:08 string-areeb