Using the username attribute of users in JWT Payloads might be ok for most situations. But i like to be able to choose other attributes of the user for identification. This especially is true for custom user models where for example guid's or similar exist.
Using the username attribute of users in JWT Payloads might be ok for most situations. But i like to be able to choose other attributes of the user for identification. This especially is true for custom user models where for example guid's or similar exist.
I've added a pull request for review.