MCPcopy Create free account
hub / github.com/auth0/go-jwt-middleware / Is

Method Is

error_handler.go:475–477  ·  view source on GitHub ↗

Is allows the error to support equality to ErrJWTInvalid.

(target error)

Source from the content-addressed store, hash-verified

473
474// Is allows the error to support equality to ErrJWTInvalid.
475func (e invalidError) Is(target error) bool {
476 return target == ErrJWTInvalid
477}
478
479// Error returns a string representation of the error.
480func (e invalidError) Error() string {

Callers 6

CookieTokenExtractorFunction · 0.45
mapErrorToResponseFunction · 0.45
Test_SentinelErrorsFunction · 0.45
Test_invalidErrorFunction · 0.45
DefaultErrorHandlerFunction · 0.45

Calls

no outgoing calls

Tested by 3

Test_SentinelErrorsFunction · 0.36
Test_invalidErrorFunction · 0.36