Skip to content

Cant create a JWT signed by private key? #258

Closed

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?

Activity

  1. locked and limited conversation to collaborators on Jan 12, 2022
  2. converted this issue into a discussion #259 on Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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