Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

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

Open
ajendrex opened this issue Aug 6, 2019 · 1 comment

Comments

@ajendrex
Copy link

ajendrex commented Aug 6, 2019

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!

@string-areeb
Copy link

Please look at #484. The project is unmaintained

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants