How to Easily Parse and Validate JSON Web Tokens (JWTs) in Python
Channel: OktaDev
Date: 2023-01-26

Note: This video was originally published on July 26, 2021.

If you use APIs you probably heard of JWTs before and you are trying to parse and verify the JWTs you just received. This compact way to carry information can be used in a number of scenarios and is important to be able to verify and parse your tokens. In this video, you'll see how you can verify, parse and prepare for errors with JWTs Python using the most popular JWT library: PyJWT

Links:
- A very complete blog post on "How to Handle JWTs in Python": https://auth0.com/blog/how-to-handle-jwt-in-python/
- The first video on "How to Create JWTs in Python": https://www.youtube.com/watch?v=vYrlAyx98Yk
- Auth0's page on JWTs: https://auth0.com/learn/json-web-tokens/
- PyJWT source code: https://github.com/jpadilla/pyjwt/
- Auth0's free ebook on JWTs: https://auth0.com/resources/ebooks/jwt-handbook
- Documentation on Python virtual environments: https://docs.python.org/3/library/venv.html#creating-virtual-environments

___________________________________________ 
Learn with Auth0 by Okta
Try Auth0 for free - https://a0.to/yt-signup 
The Auth0 by Okta blog - https://a0.to/blog 
___________________________________________ 
Follow Us on Social 
Twitter - https://twitter.com/oktadev
LinkedIn - https://www.linkedin.com/company/oktadev