I am not very familiar with Python. I am trying to use PYJWT to generate JWT token Welcome to PyJWT — PyJWT 2.4.0 documentation. I need to sign the JWT with a private key. That key is given to me in JWK format. I don’t see any ready-made support for JWK format in PyJWT. It takes normal RSA format. How can I use the given key?
Found a solution here Signing JWT Token With JWK Private Key Using PyJWT – W3 Spot