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