MCPcopy Index your code
hub / github.com/coder/coder / WithVerifyExpected

Function WithVerifyExpected

coderd/jwtutils/jws.go:100–104  ·  view source on GitHub ↗
(expected jwt.Expected)

Source from the content-addressed store, hash-verified

98}
99
100func 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.
107func Verify(ctx context.Context, v VerifyKeyProvider, token string, claims Claims, opts ...func(*VerifyOptions)) error {

Callers 2

FromRequestFunction · 0.92
VerifyResumeTokenMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected