MCPcopy
hub / github.com/golang-jwt/jwt / verify

Function verify

rsa_pss_test.go:147–151  ·  view source on GitHub ↗
(t *testing.T, signingMethod jwt.SigningMethod, token string)

Source from the content-addressed store, hash-verified

145}
146
147func verify(t *testing.T, signingMethod jwt.SigningMethod, token string) bool {
148 segments := strings.Split(token, ".")
149 err := signingMethod.Verify(strings.Join(segments[:2], "."), decodeSegment(t, segments[2]), test.LoadRSAPublicKeyFromDisk("test/sample_key.pub"))
150 return err == nil
151}

Callers 1

Calls 3

LoadRSAPublicKeyFromDiskFunction · 0.92
decodeSegmentFunction · 0.85
VerifyMethod · 0.65

Tested by

no test coverage detected