(t *testing.T, signingMethod jwt.SigningMethod, token string)
| 145 | } |
| 146 | |
| 147 | func 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 | } |
no test coverage detected