diff --git a/hmac.go b/hmac.go index c229919..ae3e4c9 100644 --- a/hmac.go +++ b/hmac.go @@ -90,5 +90,5 @@ func (m *SigningMethodHMAC) Sign(signingString string, key interface{}) (string, return EncodeSegment(hasher.Sum(nil)), nil } - return "", ErrInvalidKey + return "", ErrInvalidKeyType }