Metadata-Version: 2.4
Name: serp-jwt
Version: 0.1.0
Summary: Serpentine JSON Web Tokens: PyJWT-compatible HS256 encode/decode with exp/nbf/iat/aud/iss checks (pure Serpentine)
Author: Serpentine contributors
License: MIT
Project-URL: Homepage, https://github.com/avijitbhuin21/Serpentine
Keywords: serpentine,jwt,auth
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: serpentine-shim
Requires-Dist: serp-json>=0.2.0
Requires-Dist: serp-base64
Requires-Dist: serp-hashlib>=0.2.0
Requires-Dist: serp-time

# serp-jwt

PyJWT-compatible JSON Web Tokens (HS256) for [Serpentine](https://github.com/avijitbhuin21/Serpentine).

```python
from serp_jwt import encode, decode, ExpiredSignatureError

token = encode({"sub": "42", "exp": 1900000000}, "secret", algorithm="HS256")
claims = decode(token, "secret", algorithms=["HS256"])
```

Tokens are byte-identical to PyJWT 2.x output. `decode` verifies the signature in constant
time and checks `exp`, `nbf`, `iat`, `aud` and `iss` (with `leeway=`, `audience=`, `issuer=`).

Caps: HS256 only; `str` keys; integer time claims.
