Skip to main content

Module jwt

Module jwt 

Source
Expand description

Lightweight JWT helpers for HS256 operations.

Enums§

JwtError
Errors for JWT operations.

Functions§

build_auth_cookie
Build a Set-Cookie header value for an auth token.
decode_hs256
Decode and validate an HS256 JWT, returning typed claims.
encode_hs256
Encode a claims struct as an HS256 JWT.
extract_bearer_token
Extract a Bearer token from an Authorization header value.