Documentation
¶
Overview ¶
Package jwtutil provides minimal HS256 JWT creation and validation for internal auth (API bearer tokens and view-link tokens). No external deps — uses only stdlib crypto/hmac, sha256, base64, and encoding/json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alg ¶ added in v0.21.0
Alg returns the alg field of the token's JOSE header, or "" when the header is not decodable. Used to route a bearer token to the matching verifier (HS256 shared-secret vs Google-signed OIDC) without trying both.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.