Skip to content

Extend token payload #352

@webjunkie

Description

@webjunkie

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions