strawberry-django-jwt icon indicating copy to clipboard operation
strawberry-django-jwt copied to clipboard

Extend token payload

Open webjunkie opened this issue 1 year ago • 3 comments

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?

webjunkie avatar Sep 01 '22 10:09 webjunkie