AJ ONeal ab898e4444
feat(auth/genericjwt): add generics-based JWT/JWS/JWK package
Implements JWS[C Validatable] generic over the claims type, with a
package-level Decode[C] function (Go disallows generic methods).
Claims are directly typed as C — no interface or type assertion needed
at use sites. PublicJWK[K Key] and TypedKeys[K] provide generic
key management. Supports ES256 and RS256 via crypto.Signer.
2026-03-12 17:55:46 -06:00

4 lines
66 B
Modula-2

module github.com/therootcompany/golib/auth/genericjwt
go 1.24.0