How can I override the django-rest-framework-jwt
JSONWebTokenSerializer
to allow for a user to login via either email, username or password.
I see that as the suggested option in this github issue but am not sure how I'd override the default JSONWebTokenSerializer as its not among the JWT_AUTH
settings.
I want to be able to provide functionality as seen in this SO question where you can allow a Django User to login via any field you may have in the Custom user table
For anyone using Django Allauth, adding these settings in the settings.py file solves this.
All the configurations can be found here.