Skip to content

Cant create a JWT signed by private key? #258

@Scylla2020

Description

@Scylla2020

Im trying to create a JWT token signed by the private key and cant find a way how.

The docs only have this example for signing but it creates a JWS instead

Token = jwt.JWT(header={"alg": "HS256"},
                    claims={"info": "I'm a signed token"})
 Token.make_signed_token(key)
Token.serialize()

Is there a way to sign a JWT by private key and return a JWT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions