diff --git a/jwt/serialize.go b/jwt/serialize.go index 7ebb652d..361a0894 100644 --- a/jwt/serialize.go +++ b/jwt/serialize.go @@ -53,7 +53,7 @@ func (e errStep) Serialize(_ SerializeCtx, _ interface{}) (interface{}, error) { // // serialized, err := jwt.NewSerializer(). // Sign(jwa.RS256, key). -// Encrypt(jwa.RSA_OAEP, key.PublicKey). +// Encrypt(jwe.WithEncryptOption(jwe.WithKey(jwa.RSA_OAEP(), publicKey))). // Serialize(token) // // The `jwt.Sign()` function is equivalent to