forked from remote/oauth2
all: remove redundant type conversion
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
@@ -178,5 +178,5 @@ func Verify(token string, key *rsa.PublicKey) error {
|
||||
|
||||
h := sha256.New()
|
||||
h.Write([]byte(signedContent))
|
||||
return rsa.VerifyPKCS1v15(key, crypto.SHA256, h.Sum(nil), []byte(signatureString))
|
||||
return rsa.VerifyPKCS1v15(key, crypto.SHA256, h.Sum(nil), signatureString)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user