We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7470d commit fc86f52Copy full SHA for fc86f52
none.go
@@ -32,7 +32,7 @@ func (m *signingMethodNone) Verify(signingString string, sig []byte, key interfa
32
return NoneSignatureTypeDisallowedError
33
}
34
// If signing method is none, signature must be an empty string
35
- if string(sig) != "" {
+ if len(sig) != 0 {
36
return newError("'none' signing method with non-empty signature", ErrTokenUnverifiable)
37
38
0 commit comments