From 10fe930182aacdf32c9654ce4bf45630572439d9 Mon Sep 17 00:00:00 2001 From: lestrrat <49281+lestrrat@users.noreply.github.com> Date: Sat, 9 Nov 2024 09:24:28 +0900 Subject: [PATCH] Update serialize.go --- jwt/serialize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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