Skip to content

Commit

Permalink
Remove jws.WithHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Nov 1, 2024
1 parent 82cf1b5 commit 65c716b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions jws/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ import (
"github.com/lestrrat-go/option"
)

type identHeaders struct{}
type identInsecureNoSignature struct{}

// WithHeaders is deprecated. See WithProtectedHeaders to specify
// headers to include in the jws signature.
//
// Using this option has NO EFFECT.
func WithHeaders(h Headers) SignOption {
return &signOption{option.New(identHeaders{}, h)}
}

// WithJSON specifies that the result of `jws.Sign()` is serialized in
// JSON format.
//
Expand Down

0 comments on commit 65c716b

Please sign in to comment.