(expected jwt.Expected)
| 98 | } |
| 99 | |
| 100 | func WithVerifyExpected(expected jwt.Expected) func(*VerifyOptions) { |
| 101 | return func(opts *VerifyOptions) { |
| 102 | opts.RegisteredClaims = expected |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // Verify verifies that a token was signed by the provided key. It unmarshals into the provided claims. |
| 107 | func Verify(ctx context.Context, v VerifyKeyProvider, token string, claims Claims, opts ...func(*VerifyOptions)) error { |
no outgoing calls
no test coverage detected