(alg jose.SignatureAlgorithm)
| 376 | } |
| 377 | |
| 378 | func withSignatureAlgorithm(alg jose.SignatureAlgorithm) func(*jwtutils.VerifyOptions) { |
| 379 | return func(opts *jwtutils.VerifyOptions) { |
| 380 | opts.SignatureAlgorithm = alg |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | func withKeyAlgorithm(alg jose.KeyAlgorithm) func(*jwtutils.DecryptOptions) { |
| 385 | return func(opts *jwtutils.DecryptOptions) { |