Skip to content

Is there a way to generate a token for a user with a custom serializer? #493

Open
@taylornelson-outside

Description

I see that https://django-rest-framework-simplejwt.readthedocs.io/en/latest/creating_tokens_manually.html provides a way to create tokens manually, which is awesome!

However, it looks like https://django-rest-framework-simplejwt.readthedocs.io/en/latest/customizing_token_claims.html can be used to override the views only and not so much this token generation method?

I need to generate a token with custom claims, is this possible using this framework?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions