jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.1k stars 679 forks source link

Please, add an ES256 example in Usage Examples #989

Open oza4h07 opened 4 days ago

oza4h07 commented 4 days ago

Please refer to our StackOverflow tag for guidance. Documentation in [1] includes an Encoding and Decoding Tokens with HS256 or RS256. Those are perfect to get started using PyJWT.

Could it be possible to add a similar example using ES256, including private/public keys examples ? Ideally, you'll just have to copy-paste this example in a file to get working example of encoding and decoding with ES256.

This could be very valuable for complete beginners who may have a weak confidence about the way they generated private or public keys.

[1] https://pyjwt.readthedocs.io/en/latest/usage.html#

syedtalaljilani commented 14 hours ago

I want to work on this @jpadilla