PyJWT recipes
3 tested PyJWT integration recipes with FastAPI, pwdlib, argon2-cffi, python-multipart. Exact pinned versions and a last-passed receipt, last run 2026-10-15.
passed2/2python
FastAPI + PyJWT bearer auth
OAuth2 password flow in FastAPI issuing PyJWT tokens, with a current-user dependency guarding routes.
fastapi@0.143.1pyjwt@2.15.1httpx@0.28.1
last passed 2026-10-15 13:14 UTC
passed5/5python
FastAPI OAuth2 password flow with PyJWT tokens and scope checks
OAuth2 password login issuing PyJWT access tokens, Argon2 hashes via pwdlib, and per-route scope checks with SecurityScopes, tested offline with TestClient.
fastapi@0.143.1pyjwt@2.15.1pwdlib@0.3.1
last passed 2026-10-15 13:14 UTC
passed6/6python
RS256 JWTs with PyJWT and cryptography-generated keys
Generate an RSA keypair with cryptography, sign RS256 JWTs with PyJWT, and verify them with a public key while enforcing algorithm, audience, expiry and signature checks, all tested offline.
pyjwt@2.15.1cryptography@50.0.2pytest@9.1.1
last passed 2026-10-15 13:17 UTC