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 5bf5dc0 commit b4d6b80Copy full SHA for b4d6b80
jwt.go
@@ -253,10 +253,10 @@ func (config Config) ToMiddleware() (echo.MiddlewareFunc, error) {
253
}
254
255
if lastTokenErr == nil {
256
- return echo.NewHTTPError(http.StatusUnauthorized, "missing or malformed jwt").SetInternal(err)
+ return ErrJWTMissing.WithInternal(err)
257
258
259
- return echo.NewHTTPError(http.StatusUnauthorized, "invalid or expired jwt").SetInternal(err)
+ return ErrJWTInvalid.WithInternal(err)
260
261
}, nil
262
0 commit comments