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

Method Verify

signing_method.go:15–15  ·  signing_method.go::SigningMethod.Verify
(signingString string, sig []byte, key any)

Source from the content-addressed store, hash-verified

13// JWT.
14type SigningMethod interface {
15 Verify(signingString string, sig []byte, key any) error // Returns nil if signature is valid
16 Sign(signingString string, key any) ([]byte, error) // Returns signature or error
17 Alg() string // returns the alg identifier for this method (example: 'HS256')
18}

Callers 12

VerifyMethod · 0.65
TestHMACVerifyFunction · 0.65
ParseWithClaimsMethod · 0.65
TestRSAPSSVerifyFunction · 0.65
verifyFunction · 0.65
VerifyMethod · 0.65
TestEd25519VerifyFunction · 0.65
TestECDSAVerifyFunction · 0.65
TestECDSASignFunction · 0.65
TestRSAVerifyFunction · 0.65
TestNoneVerifyFunction · 0.65

Calls

no outgoing calls

Tested by 9

TestHMACVerifyFunction · 0.52
TestRSAPSSVerifyFunction · 0.52
verifyFunction · 0.52
TestEd25519VerifyFunction · 0.52
TestECDSAVerifyFunction · 0.52
TestECDSASignFunction · 0.52
TestRSAVerifyFunction · 0.52
TestNoneVerifyFunction · 0.52