strawberry-django-jwt
strawberry-django-jwt copied to clipboard
Extend token payload
I'm trying to get custom fields into the JWT payload to make things work with Hasura. I can set a custom jwt_payload
function, but I get the problem that there is a hardcoded type TokenPayloadType
used everywhere which thus throws an error: __init__() got an unexpected keyword argument
.
How can I extend tokens to include custom payload?