Add SUB claim (subject) in settings and use it for token creation
Firebase requires to pass sub (subject) in JWT token: https://firebase.google.com/docs/auth/admin/create-custom-tokens
Would be great to add it in settings and during token creation so that this package can be used with Firebase custom authentication.
I have a similar requirement. You can add claims to your jwt by providing your own jwt payload handler in settings.
https://django-graphql-jwt.domake.io/en/latest/settings.html#jwt-payload-handler https://django-graphql-jwt.domake.io/en/latest/_modules/graphql_jwt/utils.html#jwt_payload
To be honest I think this requirement is important enough that a larger portion of the docs could be dedicated to it. An example under Customizing is perhaps appropriate.