You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a way in the API to get the underlying dict from the Algorithm.to_jwk(key) functions.
My proposal is to add another variant Algorithm.to_jwk_dict(key) to not break API compatibility.
I'm planning to send PR implementing this, but I figured I should raise an issue first to see if there's any better way of doing this...
The text was updated successfully, but these errors were encountered:
Currently, the when generating a JWK, the only way to get a
dict
from PyJWT is to:This is very unfortunate when you want to add more fields into the JWK:
There should be a way in the API to get the underlying
dict
from theAlgorithm.to_jwk(key)
functions.My proposal is to add another variant
Algorithm.to_jwk_dict(key)
to not break API compatibility.I'm planning to send PR implementing this, but I figured I should raise an issue first to see if there's any better way of doing this...
The text was updated successfully, but these errors were encountered: