flavors / django-graphql-jwt

JSON Web Token (JWT) authentication for Graphene Django
https://django-graphql-jwt.domake.io
MIT License
819 stars 171 forks source link

Support for Custom User Model added #326

Closed dev-msln closed 7 months ago

dev-msln commented 9 months ago

This is my first contribution to the open-source community. Please give me your useful feedbacks to make my code better.

In this pull request, I added some new codes in order to make the library work with other fields rather than `username` for authentication.
dev-msln commented 9 months ago

Hi @mongkok

This is my first contribution to the open-source.

Notes: 1- I couldn't run the tests. I used pytest to run unit tests, but due to not having SECRET_KEY, I faced some errors. How can I prepare a secret key in order to fix this issue?