Documentation
¶
Overview ¶
Package jwtutil provides support for creating and verifying JSON Web Tokens (JWTs) managed by the github.com/lestrrat-go/jwx/v3/jwk package. This package provides simplified wrappers around the JWT signing and verification process to allow for more convenient usage in web applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer interface {
Sign(context.Context, jwt.Token) ([]byte, error)
PublicKey() (jwk.Key, error)
Validator
}
Signer is an interface for signing and verifying JWTs.
func NewED25519Signer ¶
func NewED25519Signer(priv ed25519.PrivateKey, id string) (Signer, error)
NewED25519Signer creates a new ED25519Signer instance with the given private key and key ID.
Click to show internal directories.
Click to hide internal directories.